projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc2a614
)
[NFC] Add a missing test for for clang-repl
author
Jun Zhang
<jun@junz.org>
Fri, 1 Jul 2022 15:26:08 +0000
(23:26 +0800)
committer
Jun Zhang
<jun@junz.org>
Fri, 1 Jul 2022 15:26:54 +0000
(23:26 +0800)
This adds a missing test for
0ecbedc0986bd4b7b90a60a5f31d32337160d4c4
Signed-off-by: Jun Zhang <jun@junz.org>
Differential Revision: https://reviews.llvm.org/D128991
clang/test/Interpreter/execute.cpp
patch
|
blob
|
history
diff --git
a/clang/test/Interpreter/execute.cpp
b/clang/test/Interpreter/execute.cpp
index
f5c70c2
..
8fb528c
100644
(file)
--- 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