[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 08:27:36 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG2750985a5ccb: [NFC] Add a missing test for for clang-repl (authored by junaire).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128991/new/

https://reviews.llvm.org/D128991

Files:
  clang/test/Interpreter/execute.cpp


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
+
 %quit


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


More information about the cfe-commits mailing list