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:
Jun Zhang 2022-07-05 12:32:12 +08:00
parent ba14e4d65c
commit f03b876e7e
No known key found for this signature in database
GPG Key ID: E19904830B621534
1 changed files with 5 additions and 0 deletions

View File

@ -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