| // Part of the Crubit project, under the Apache License v2.0 with LLVM |
| // Exceptions. See /LICENSE for license information. |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| |
| #ifndef CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_ENUMS_H_ |
| #define CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_ENUMS_H_ |
| |
| enum Color { |
| kRed, |
| kBlue, |
| kGreen, |
| }; |
| |
| enum Empty {}; |
| enum EmptyBool : bool {}; |
| enum EmptyInt : unsigned int {}; |
| enum EmptyChar : char {}; |
| |
| enum NonEmptyBool : bool { kBool1, kBool2 = true }; |
| enum NonEmptyInt : unsigned int { kInt1, kInt2 = 4294967295 }; |
| enum NonEmptyChar : char { kChar1, kChar2 = 'a' }; |
| |
| enum class EmptyClass {}; |
| enum class EmptyBoolClass : bool {}; |
| enum class EmptyIntClass : int {}; |
| enum class EmptyCharClass : char {}; |
| |
| enum class NonEmptyBoolClass : bool { k1, k2 = true }; |
| enum class NonEmptyIntClass : unsigned int { k1, k2 = 4294967295 }; |
| enum class NonEmptyCharClass : char { k1, k2 = 'a' }; |
| |
| #endif // CRUBIT_RS_BINDINGS_FROM_CC_TEST_GOLDEN_ENUMS_H_ |