[clang] 2750985 - [NFC] Add a missing test for for clang-repl
Jun Zhang via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 1 08:27:30 PDT 2022
Author: Jun Zhang
Date: 2022-07-01T23:26:54+08:00
New Revision: 2750985a5ccb97f4630c3443e75d78ed435d2bd0
URL: https://github.com/llvm/llvm-project/commit/2750985a5ccb97f4630c3443e75d78ed435d2bd0
DIFF: https://github.com/llvm/llvm-project/commit/2750985a5ccb97f4630c3443e75d78ed435d2bd0.diff
LOG: [NFC] Add a missing test for for clang-repl
This adds a missing test for 0ecbedc0986bd4b7b90a60a5f31d32337160d4c4
Signed-off-by: Jun Zhang <jun at junz.org>
Differential Revision: https://reviews.llvm.org/D128991
Added:
Modified:
clang/test/Interpreter/execute.cpp
Removed:
################################################################################
diff --git a/clang/test/Interpreter/execute.cpp b/clang/test/Interpreter/execute.cpp
index f5c70c21ac507..8fb528c4750a8 100644
--- a/clang/test/Interpreter/execute.cpp
+++ b/clang/test/Interpreter/execute.cpp
@@ -18,4 +18,8 @@ auto r2 = printf("S[f=%f, m=0x%llx]\n", s.f, reinterpret_cast<unsigned long long
inline int foo() { return 42; }
int r3 = foo();
+int __attribute__((weak)) bar() { return 1; }
+auto r4 = printf("bar() = %d\n", bar());
+// CHECK-NEXT: bar() = 1
+
%quit
More information about the cfe-commits
mailing list