[clang] 8679cbc - Reland "[NFC] Add a missing test for for clang-repl"
Jun Zhang via cfe-commits
cfe-commits at lists.llvm.org
Sun Jul 3 04:16:42 PDT 2022
Author: Jun Zhang
Date: 2022-07-03T19:15:59+08:00
New Revision: 8679cbc29fb76195544956fe233060bb7a1a6453
URL: https://github.com/llvm/llvm-project/commit/8679cbc29fb76195544956fe233060bb7a1a6453
DIFF: https://github.com/llvm/llvm-project/commit/8679cbc29fb76195544956fe233060bb7a1a6453.diff
LOG: Reland "[NFC] Add a missing test for for clang-repl"
This reverts 3668d1264e2d246f7e222338b8a5cab18ce1bdab
As far as we know, `__attribute__((weak))` support has been really bad
in runtimeldyld, so we just disable it in Windows at this moment. This
should fix the angry Windows buildbot.
Differential Revision: https://reviews.llvm.org/D129042
Added:
Modified:
clang/test/Interpreter/execute.cpp
Removed:
################################################################################
diff --git a/clang/test/Interpreter/execute.cpp b/clang/test/Interpreter/execute.cpp
index f5c70c21ac50..3754e8d9f964 100644
--- a/clang/test/Interpreter/execute.cpp
+++ b/clang/test/Interpreter/execute.cpp
@@ -3,6 +3,7 @@
// RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
// REQUIRES: host-supports-jit
// UNSUPPORTED: system-aix
+// XFAIL: windows-msvc
// CHECK-DRIVER: i = 10
// RUN: cat %s | clang-repl | FileCheck %s
extern "C" int printf(const char *, ...);
@@ -18,4 +19,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