[PATCH] D128991: [NFC] Add a missing test for for clang-repl

Jun Zhang via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 1 06:50:32 PDT 2022

junaire created this revision.
junaire added a reviewer: v.g.vassilev.
Herald added a project: All.
junaire requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This adds a missing test for 0ecbedc0986bd4b7b90a60a5f31d32337160d4c4 <https://reviews.llvm.org/rG0ecbedc0986bd4b7b90a60a5f31d32337160d4c4>
Signed-off-by: Jun Zhang <jun at junz.org>

  rG LLVM Github Monorepo



Index: clang/test/Interpreter/execute.cpp
--- clang/test/Interpreter/execute.cpp
+++ clang/test/Interpreter/execute.cpp
@@ -18,4 +18,8 @@
 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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128991.441682.patch
Type: text/x-patch
Size: 382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220701/d2bcd33f/attachment.bin>

More information about the cfe-commits mailing list