File tree Expand file tree Collapse file tree 5 files changed +3
-17
lines changed Expand file tree Collapse file tree 5 files changed +3
-17
lines changed Original file line number Diff line number Diff line change 1
- // RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
2
- // RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
3
1
// UNSUPPORTED: system-aix
4
- // CHECK-DRIVER: i = 10
5
2
// RUN: cat %s | clang-repl | FileCheck %s
6
3
extern " C" int printf (const char *, ...);
7
4
int x1 = 0 ;
Original file line number Diff line number Diff line change 1
- // RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
2
- // RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
3
- // RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
4
- // CHECK-DRIVER: i = 10
5
- //
6
1
// UNSUPPORTED: system-aix, system-windows
7
2
// RUN: cat %s | clang-repl | FileCheck %s
8
3
Original file line number Diff line number Diff line change
1
+ // UNSUPPORTED: system-aix
2
+
1
3
// clang-format off
2
- // RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
3
4
// RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
4
5
// RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
5
- // UNSUPPORTED: system-aix
6
6
// CHECK-DRIVER: i = 10
7
+
7
8
// RUN: cat %s | clang-repl | FileCheck %s
8
9
// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
9
10
extern " C" int printf (const char *, ...);
Original file line number Diff line number Diff line change 3
3
// error, and then successfully recovers if we decide it's a success then for
4
4
// the non-interactive mode the exit code should be a failure.
5
5
// RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
6
- // RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
7
- // RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
8
6
// REQUIRES: host-supports-jit
9
7
// UNSUPPORTED: system-aix
10
- // CHECK-DRIVER: i = 10
11
8
// RUN: cat %s | not clang-repl | FileCheck %s
12
9
BOOM!
13
10
extern " C" int printf (const char *, ...);
Original file line number Diff line number Diff line change 1
- // RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
2
- // RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
3
- // RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
4
1
// REQUIRES: host-supports-jit
5
2
// UNSUPPORTED: system-aix
6
- // CHECK-DRIVER: i = 10
7
3
// RUN: cat %s | clang-repl | FileCheck %s
8
4
// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
9
5
extern " C" int printf (const char *, ...);
You can’t perform that action at this time.
0 commit comments