forked from OSchip/llvm-project
Reland "Reland "[NFC] Add a missing test for for clang-repl""
This reverts commit 6956840b5c
.
Try to use `XFAIL: windows-msvc || ps4` to disable all unsupported targets.
Signed-off-by: Jun Zhang <jun@junz.org>
This commit is contained in:
parent
ba14e4d65c
commit
f03b876e7e
|
@ -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 || ps4
|
||||
// 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
|
||||
|
|
Loading…
Reference in New Issue