[clang] 193de1a - [clang-repl] Spell out the enum types to appease some bots.
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 19 04:31:07 PDT 2025
Author: Vassil Vassilev
Date: 2025-07-19T11:28:26Z
New Revision: 193de1a566aa5a10a6f63f6f7c7fca2e52a7d75b
URL: https://github.com/llvm/llvm-project/commit/193de1a566aa5a10a6f63f6f7c7fca2e52a7d75b
DIFF: https://github.com/llvm/llvm-project/commit/193de1a566aa5a10a6f63f6f7c7fca2e52a7d75b.diff
LOG: [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.
Added:
Modified:
clang/test/Interpreter/pretty-print.cpp
Removed:
################################################################################
diff --git a/clang/test/Interpreter/pretty-print.cpp b/clang/test/Interpreter/pretty-print.cpp
index 0882a3f9e462e..1952cc7428e85 100644
--- a/clang/test/Interpreter/pretty-print.cpp
+++ b/clang/test/Interpreter/pretty-print.cpp
@@ -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.
More information about the cfe-commits
mailing list