diff --git a/clang/test/3C/addrof_crash.c b/clang/test/3C/addrof_crash.c index a7c58760958f..1509437386e0 100644 --- a/clang/test/3C/addrof_crash.c +++ b/clang/test/3C/addrof_crash.c @@ -1,5 +1,5 @@ // RUN: 3c -base-dir=%S -alltypes %s -- | FileCheck %s -// RUN: 3c -base-dir=%S -alltypes %s -- | %clang_cc1 -fno-builtin -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -alltypes %s -- | %clang -c -fno-builtin -Xclang -verify -fcheckedc-extension -x c - // No conversions expected for these two, they just shouldn't crash diff --git a/clang/test/3C/allocator.c b/clang/test/3C/allocator.c index 3f35c7bb88d7..4bfd69be5033 100644 --- a/clang/test/3C/allocator.c +++ b/clang/test/3C/allocator.c @@ -4,7 +4,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -fno-builtin -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -fno-builtin -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked %t.checked/allocator.c -- | diff %t.checked/allocator.c - // expected-no-diagnostics diff --git a/clang/test/3C/basic_checks.c b/clang/test/3C/basic_checks.c index 397bf779e569..30c8bdbfe50a 100644 --- a/clang/test/3C/basic_checks.c +++ b/clang/test/3C/basic_checks.c @@ -5,7 +5,7 @@ // // RUN: 3c -base-dir=%S -alltypes %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // expected-no-diagnostics // diff --git a/clang/test/3C/basic_inter_field.c b/clang/test/3C/basic_inter_field.c index caa42789145a..3e071eaa33fe 100644 --- a/clang/test/3C/basic_inter_field.c +++ b/clang/test/3C/basic_inter_field.c @@ -3,7 +3,7 @@ // Tests properties about constraint propagation of structure fields // across functions // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // expected-no-diagnostics // diff --git a/clang/test/3C/basic_inter_field_arr.c b/clang/test/3C/basic_inter_field_arr.c index 8d38fcb5e272..da0d881f8878 100644 --- a/clang/test/3C/basic_inter_field_arr.c +++ b/clang/test/3C/basic_inter_field_arr.c @@ -3,7 +3,7 @@ // Tests properties about arr constraints propagation. // // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // expected-no-diagnostics // // This tests the propagation of constraints diff --git a/clang/test/3C/basic_local_field.c b/clang/test/3C/basic_local_field.c index abf9766447f0..cb19bdbba1fe 100644 --- a/clang/test/3C/basic_local_field.c +++ b/clang/test/3C/basic_local_field.c @@ -3,7 +3,7 @@ // Tests properties about type re-writing and replacement of structure members // // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // expected-no-diagnostics // diff --git a/clang/test/3C/boundary_tests.c b/clang/test/3C/boundary_tests.c index 826a9373c0ee..a2825a4c5b4e 100644 --- a/clang/test/3C/boundary_tests.c +++ b/clang/test/3C/boundary_tests.c @@ -2,7 +2,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -addcr %t.checked/boundary_tests.c -- | diff %t.checked/boundary_tests.c - // expected-no-diagnostics diff --git a/clang/test/3C/bounds_interface.c b/clang/test/3C/bounds_interface.c index 2d961278442a..e266533dbf22 100644 --- a/clang/test/3C/bounds_interface.c +++ b/clang/test/3C/bounds_interface.c @@ -2,7 +2,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -addcr %t.checked/bounds_interface.c -- | diff %t.checked/bounds_interface.c - // expected-no-diagnostics diff --git a/clang/test/3C/cant_be_nt.c b/clang/test/3C/cant_be_nt.c index fe45e199c75a..d5e9d27e6627 100644 --- a/clang/test/3C/cant_be_nt.c +++ b/clang/test/3C/cant_be_nt.c @@ -2,8 +2,8 @@ // // Checks to make sure _Nt_arrrays only contain pointers & integers // -// RUN: 3c -alltypes -base-dir=%S %s -- | %clang_cc1 -fcheckedc-extension -x c - -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -fcheckedc-extension -x c - +// RUN: 3c -alltypes -base-dir=%S %s -- | %clang -c -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s // RUN: 3c -alltypes -base-dir=%S %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s // expected-no-diagnostics diff --git a/clang/test/3C/const_tests.c b/clang/test/3C/const_tests.c index 9913d7de8c0f..7c9ae7f3186c 100644 --- a/clang/test/3C/const_tests.c +++ b/clang/test/3C/const_tests.c @@ -4,7 +4,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -addcr %t.checked/const_tests.c -- | diff %t.checked/const_tests.c - // expected-no-diagnostics diff --git a/clang/test/3C/global.c b/clang/test/3C/global.c index 2fe70aac5cb6..0a08001226b0 100644 --- a/clang/test/3C/global.c +++ b/clang/test/3C/global.c @@ -4,7 +4,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -fno-builtin -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -fno-builtin -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -addcr %t.checked/global.c -- | diff %t.checked/global.c - // expected-no-diagnostics diff --git a/clang/test/3C/multipledecls.c b/clang/test/3C/multipledecls.c index 6529a942ebb5..42d13d0d9a4c 100644 --- a/clang/test/3C/multipledecls.c +++ b/clang/test/3C/multipledecls.c @@ -4,7 +4,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -addcr %t.checked/multipledecls.c -- | diff %t.checked/multipledecls.c - // expected-no-diagnostics diff --git a/clang/test/3C/placements.c b/clang/test/3C/placements.c index 72e61a0b81fe..9aca5c883490 100644 --- a/clang/test/3C/placements.c +++ b/clang/test/3C/placements.c @@ -5,7 +5,7 @@ // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK","CHECK_NOALL","CHECK-NEXT" %s // RUN: 3c -base-dir=%S -addcr -alltypes %s -- | FileCheck -match-full-lines -check-prefixes="CHECK","CHECK_ALL","CHECK-NEXT" %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -alltypes -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -addcr -alltypes %t.checked/placements.c -- | diff %t.checked/placements.c - // expected-no-diagnostics diff --git a/clang/test/3C/ptrtoconstarr.c b/clang/test/3C/ptrtoconstarr.c index 468541fd2955..24f60bee2674 100644 --- a/clang/test/3C/ptrtoconstarr.c +++ b/clang/test/3C/ptrtoconstarr.c @@ -1,8 +1,8 @@ // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s -// RUN: 3c -base-dir=%S --addcr %s -- | %clang_cc1 -fcheckedc-extension -x c - -// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang_cc1 -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S --addcr %s -- | %clang -c -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang -c -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -alltypes %t.checked/ptrtoconstarr.c -- | diff %t.checked/ptrtoconstarr.c - diff --git a/clang/test/3C/simple_locals.c b/clang/test/3C/simple_locals.c index adacebb40946..02e12f9a4596 100644 --- a/clang/test/3C/simple_locals.c +++ b/clang/test/3C/simple_locals.c @@ -4,7 +4,7 @@ // // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s -// RUN: 3c -base-dir=%S -addcr %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -addcr %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -addcr -alltypes %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s // RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s -- // RUN: 3c -base-dir=%t.checked -alltypes %t.checked/simple_locals.c -- | diff %t.checked/simple_locals.c - diff --git a/clang/test/3C/some_checked.c b/clang/test/3C/some_checked.c index ea301977f77a..c14875388d01 100644 --- a/clang/test/3C/some_checked.c +++ b/clang/test/3C/some_checked.c @@ -1,7 +1,7 @@ // Tests for the 3C. // // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // expected-no-diagnostics // diff --git a/clang/test/3C/struct_init_list.c b/clang/test/3C/struct_init_list.c index ad8bc03dcf66..a7f3d773058b 100644 --- a/clang/test/3C/struct_init_list.c +++ b/clang/test/3C/struct_init_list.c @@ -1,7 +1,7 @@ // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -alltypes %s -- | FileCheck -match-full-lines %s // RUN: 3c -base-dir=%S -alltypes %s -- | %clang -c -fcheckedc-extension -x c -o /dev/null - -// RUN: 3c -base-dir=%S -alltypes %s -- | %clang_cc1 -fno-builtin -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S -alltypes %s -- | %clang -c -fno-builtin -Xclang -verify -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -output-dir=%t.checked -alltypes %s -- // RUN: 3c -base-dir=%t.checked -alltypes %t.checked/struct_init_list.c -- | diff %t.checked/struct_init_list.c - // expected-no-diagnostics diff --git a/clang/test/3C/typedefbounds.c b/clang/test/3C/typedefbounds.c index 2c4d64baaada..116a9d0bd877 100644 --- a/clang/test/3C/typedefbounds.c +++ b/clang/test/3C/typedefbounds.c @@ -1,6 +1,6 @@ // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s -// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang_cc1 -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang -c -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s // RUN: 3c -base-dir=%t.checked -alltypes %t.checked/typedefbounds.c -- | diff %t.checked/typedefbounds.c - diff --git a/clang/test/3C/typedefnoptr.c b/clang/test/3C/typedefnoptr.c index 7aec34a59a0f..0f2751fa950f 100644 --- a/clang/test/3C/typedefnoptr.c +++ b/clang/test/3C/typedefnoptr.c @@ -1,5 +1,5 @@ //RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK" %s -//RUN: 3c -base-dir=%S --addcr %s -- | %clang_cc1 -fcheckedc-extension -x c - +//RUN: 3c -base-dir=%S --addcr %s -- | %clang -c -fcheckedc-extension -x c - typedef unsigned int uint_t; typedef uint_t *ptr_uint_t; diff --git a/clang/test/3C/typedefs.c b/clang/test/3C/typedefs.c index de8d9fdab695..7a0c61d8bbe6 100644 --- a/clang/test/3C/typedefs.c +++ b/clang/test/3C/typedefs.c @@ -1,8 +1,8 @@ // RUN: rm -rf %t* // RUN: 3c -base-dir=%S -alltypes -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_ALL","CHECK" %s // RUN: 3c -base-dir=%S -addcr %s -- | FileCheck -match-full-lines -check-prefixes="CHECK_NOALL","CHECK" %s -// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang_cc1 -fcheckedc-extension -x c - -// RUN: 3c -base-dir=%S --addcr %s -- | %clang_cc1 -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S --addcr --alltypes %s -- | %clang -c -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S --addcr %s -- | %clang -c -fcheckedc-extension -x c - // RUN: 3c -base-dir=%S -alltypes -output-dir=%t.checked %s // RUN: 3c -base-dir=%t.checked -alltypes %t.checked/typedefs.c -- | diff %t.checked/typedefs.c - diff --git a/clang/test/3C/vargs.c b/clang/test/3C/vargs.c index 844371fff66c..4ca15a4eccf1 100644 --- a/clang/test/3C/vargs.c +++ b/clang/test/3C/vargs.c @@ -4,7 +4,7 @@ // // RUN: 3c -base-dir=%S %s -- | FileCheck -match-full-lines %s // RUN: 3c -base-dir=%S -alltypes %s -- | FileCheck -match-full-lines %s -// RUN: 3c -base-dir=%S %s -- | %clang_cc1 -verify -fcheckedc-extension -x c - +// RUN: 3c -base-dir=%S %s -- | %clang -c -Xclang -verify -fcheckedc-extension -x c - // expected-no-diagnostics #include