Skip to content

Commit af31659

Browse files
Replace %clang_cc1 with %clang in two tests that need the system
headers. %clang_cc1 expands to a command line containing -nostdsysteminc, which turns off the use of the system headers. Hope this doesn't affect the validity of the tests. We'll probably end up doing this to all the 3C regression tests as part of #346, but for now, minimize the number of tests we have to think about.
1 parent 04108f3 commit af31659

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

clang/test/3C/allocator.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
//
55
// RUN: rm -rf %t*
66
// RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s
7-
// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -fno-builtin -verify -fcheckedc-extension -x c -
7+
// RUN: 3c -base-dir=%S %s -- | %clang -c -fno-builtin -Xclang -verify -fcheckedc-extension -x c -
88
// RUN: 3c -base-dir=%S -output-dir=%t.checked %s --
99
// RUN: 3c -base-dir=%t.checked %t.checked/allocator.c -- | diff %t.checked/allocator.c -
1010
// expected-no-diagnostics

clang/test/3C/ptrtoconstarr.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: rm -rf %t*
22
// RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s
33
// RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s
4-
// RUN: 3c -base-dir=%S --addcr %s -- | %clang_cc1 -fcheckedc-extension -x c -
5-
// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang_cc1 -fcheckedc-extension -x c -
4+
// RUN: 3c -base-dir=%S --addcr %s -- | %clang -c -fcheckedc-extension -x c -
5+
// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang -c -fcheckedc-extension -x c -
66
// RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s --
77
// RUN: 3c -base-dir=%t.checked -alltypes %t.checked/ptrtoconstarr.c -- | diff %t.checked/ptrtoconstarr.c -
88

0 commit comments

Comments
 (0)