mirror of
https://github.com/intel/llvm.git
synced 2026-01-22 23:49:22 +08:00
[clang-repl] Spell out the enum types to appease some bots.
This change is a follow-up of llvm/llvm-project#148701 where clang-s390x-linux and clang-s390x-linux-lnt failed.
This commit is contained in:
@@ -28,15 +28,15 @@ S4{}
|
||||
// CHECK-NEXT: (S4) @0x{{[0-9a-f]+}}
|
||||
// TODO-CHECK-NEXT: ~S4()
|
||||
|
||||
enum Enum{ e1 = -12, e2, e3=33, e4, e5 = 33};
|
||||
enum Enum : int { e1 = -12, e2, e3=33, e4, e5 = 33};
|
||||
e2
|
||||
// CHECK-NEXT: (Enum) (e2) : int -11
|
||||
::e1
|
||||
// CHECK-NEXT: (Enum) (e1) : int -12
|
||||
|
||||
enum class Color { R = 0, G, B };
|
||||
enum class Color : unsigned int { R = 0, G, B };
|
||||
Color::R
|
||||
// CHECK-NEXT: (Color) (Color::R) : int 0
|
||||
// CHECK-NEXT: (Color) (Color::R) : unsigned int 0
|
||||
|
||||
|
||||
// Lambdas.
|
||||
|
||||
Reference in New Issue
Block a user