Skip to content

Commit ac6e9e6

Browse files
committed
[clang-repl] Remove redundant tests
They only need to be tested once in execute.cpp and fail.cpp. Differential Revision: https://reviews.llvm.org/D156425
1 parent 3c4d222 commit ac6e9e6

File tree

5 files changed

+3
-17
lines changed

5 files changed

+3
-17
lines changed

clang/test/Interpreter/code-undo.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
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
31
// UNSUPPORTED: system-aix
4-
// CHECK-DRIVER: i = 10
52
// RUN: cat %s | clang-repl | FileCheck %s
63
extern "C" int printf(const char *, ...);
74
int x1 = 0;

clang/test/Interpreter/execute-weak.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
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-
//
61
// UNSUPPORTED: system-aix, system-windows
72
// RUN: cat %s | clang-repl | FileCheck %s
83

clang/test/Interpreter/execute.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1+
// UNSUPPORTED: system-aix
2+
13
// clang-format off
2-
// RUN: clang-repl "int x = 10;" "int y=7; err;" "int y = 10;"
34
// RUN: clang-repl "int i = 10;" 'extern "C" int printf(const char*,...);' \
45
// RUN: 'auto r1 = printf("i = %d\n", i);' | FileCheck --check-prefix=CHECK-DRIVER %s
5-
// UNSUPPORTED: system-aix
66
// CHECK-DRIVER: i = 10
7+
78
// RUN: cat %s | clang-repl | FileCheck %s
89
// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
910
extern "C" int printf(const char *, ...);

clang/test/Interpreter/fail.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
// error, and then successfully recovers if we decide it's a success then for
44
// the non-interactive mode the exit code should be a failure.
55
// 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
86
// REQUIRES: host-supports-jit
97
// UNSUPPORTED: system-aix
10-
// CHECK-DRIVER: i = 10
118
// RUN: cat %s | not clang-repl | FileCheck %s
129
BOOM!
1310
extern "C" int printf(const char *, ...);

clang/test/Interpreter/lambda.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
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
41
// REQUIRES: host-supports-jit
52
// UNSUPPORTED: system-aix
6-
// CHECK-DRIVER: i = 10
73
// RUN: cat %s | clang-repl | FileCheck %s
84
// RUN: cat %s | clang-repl -Xcc -O2 | FileCheck %s
95
extern "C" int printf(const char *, ...);

0 commit comments

Comments
 (0)