Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 96e7813

Browse files
committed
Add 'not' to commands that are expected to fail.
This is at least good documentation, but also opens the possibility of using pipefail. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185652 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 3c7511a commit 96e7813

File tree

133 files changed

+262
-262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

133 files changed

+262
-262
lines changed

test/ARCMT/verify.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %clang_cc1 -arcmt-check -verify %s
2-
// RUN: %clang_cc1 -arcmt-check -verify %t.invalid 2>&1 | FileCheck %s
2+
// RUN: not %clang_cc1 -arcmt-check -verify %t.invalid 2>&1 | FileCheck %s
33

44
#if 0
55
// expected-error {{should be ignored}}

test/ASTMerge/category.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/category1.m
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/category2.m
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: category2.m:18:1: error: instance method 'method2' has incompatible result types in different translation units ('float' vs. 'int')
66
// CHECK: category1.m:16:1: note: instance method 'method2' also declared here

test/ASTMerge/class-template.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class-template1.cpp
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class-template2.cpp
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: class-template1.cpp:7:14: error: non-type template parameter declared with incompatible types in different translation units ('int' vs. 'long')
66
// CHECK: class-template2.cpp:7:15: note: declared here with type 'long'

test/ASTMerge/enum.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/enum1.c
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/enum2.c
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: enum1.c:9:6: warning: type 'enum E2' has incompatible definitions in different translation units
66
// CHECK: enum1.c:11:3: note: enumerator 'E2Enumerator2' with value 3 here

test/ASTMerge/function.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/function1.c
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/function2.c
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -verify %s
55

66
// CHECK: function2.c:3:6: error: external function 'f1' declared with incompatible types in different translation units ('void (Int, double)' vs. 'void (int, float)')

test/ASTMerge/interface.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/interface1.m
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/interface2.m
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: interface2.m:16:9: error: instance variable 'ivar2' declared with incompatible types in different translation units ('float' vs. 'int')
66
// CHECK: interface1.m:16:7: note: declared here with type 'int'

test/ASTMerge/namespace.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/namespace1.cpp
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/namespace2.cpp
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: namespace2.cpp:16:17: error: external variable 'z' declared with incompatible types in different translation units ('double' vs. 'float')
66
// CHECK: namespace1.cpp:16:16: note: declared here with type 'float'

test/ASTMerge/property.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/property1.m
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/property2.m
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: property2.m:12:26: error: property 'Prop1' declared with incompatible types in different translation units ('int' vs. 'float')
66
// CHECK: property1.m:10:28: note: declared here with type 'float'

test/ASTMerge/struct.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/struct1.c
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/struct2.c
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: struct1.c:13:8: warning: type 'struct S1' has incompatible definitions in different translation units
66
// CHECK: struct1.c:15:7: note: field 'field2' has type 'int' here

test/ASTMerge/typedef.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/typedef1.c
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/typedef2.c
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s
44

55
// CHECK: typedef2.c:4:10: error: external variable 'x2' declared with incompatible types in different translation units ('Typedef2' (aka 'double') vs. 'Typedef2' (aka 'int'))
66
// CHECK: typedef1.c:4:10: note: declared here with type 'Typedef2' (aka 'int')

test/ASTMerge/var.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/var1.c
22
// RUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/var2.c
3-
// RUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s
3+
// RUN: not %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only -fdiagnostics-show-note-include-stack %s 2>&1 | FileCheck %s
44

55
// CHECK: var2.c:2:9: error: external variable 'x1' declared with incompatible types in different translation units ('double *' vs. 'float **')
66
// CHECK: var1.c:2:9: note: declared here with type 'float **'

test/CodeGen/arm-asm-diag.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: arm-registered-target
2-
// RUN: %clang_cc1 -triple armv7 %s -S -o /dev/null 2>&1 | FileCheck %s
2+
// RUN: not %clang_cc1 -triple armv7 %s -S -o /dev/null 2>&1 | FileCheck %s
33

44
// rdar://13446483
55
typedef __attribute__((neon_vector_type(2))) long long int64x2_t;

test/CodeGen/link-bitcode-file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -DBITCODE -emit-llvm-bc -o %t.bc %s
22
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -mlink-bitcode-file %t.bc -O3 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-NO-BC %s
3-
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -DBITCODE -mlink-bitcode-file %t.bc -O3 -emit-llvm -o - %s 2>&1 | FileCheck -check-prefix=CHECK-BC %s
3+
// RUN: not %clang_cc1 -triple i386-pc-linux-gnu -DBITCODE -mlink-bitcode-file %t.bc -O3 -emit-llvm -o - %s 2>&1 | FileCheck -check-prefix=CHECK-BC %s
44

55
int f(void);
66

test/CodeGen/pragma-weak.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm %s -o - -verify | FileCheck %s
1+
// RUN: not %clang_cc1 -triple x86_64-pc-linux-gnu -emit-llvm %s -o - -verify | FileCheck %s
22

33
// CHECK: @weakvar = weak global
44
// CHECK: @__weakvar_alias = common global

test/CodeGenCXX/const-init-cxx11.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++11 | FileCheck %s
1+
// RUN: not %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++11 | FileCheck %s
22

33
// FIXME: The padding in all these objects should be zero-initialized.
44
namespace StructUnion {

test/CodeGenCXX/const-init-cxx1y.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++1y | FileCheck %s
1+
// RUN: not %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s -std=c++1y | FileCheck %s
22

33
struct A {
44
constexpr A() : n(1) {}

test/CodeGenCXX/const-init.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
1+
// RUN: not %clang_cc1 -verify -triple x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
22

33
// CHECK: @a = global i32 10
44
int a = 10;

test/CodeGenCXX/constructor-destructor-return-this.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-unknown-linux | FileCheck --check-prefix=CHECKGEN %s
22
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=thumbv7-apple-ios3.0 -target-abi apcs-gnu | FileCheck --check-prefix=CHECKARM %s
3-
//RUN: %clang_cc1 %s -emit-llvm -o - -DPR12784_WORKAROUND -triple=x86_64-pc-win32 -cxx-abi microsoft | FileCheck --check-prefix=CHECKMS %s
3+
//RUN: not %clang_cc1 %s -emit-llvm -o - -DPR12784_WORKAROUND -triple=x86_64-pc-win32 -cxx-abi microsoft | FileCheck --check-prefix=CHECKMS %s
44

55
// FIXME: Add checks to ensure that Microsoft destructors do not return 'this'
66
// once PR12784 is resolved

test/CodeGenCXX/cxx11-exception-spec.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -std=c++11 -emit-llvm %s -o - -verify -fexceptions -fcxx-exceptions -triple x86_64-linux-gnu | FileCheck %s
1+
// RUN: not %clang_cc1 -std=c++11 -emit-llvm %s -o - -verify -fexceptions -fcxx-exceptions -triple x86_64-linux-gnu | FileCheck %s
22

33
void h();
44

test/CodeGenCXX/debug-info-cxx1y.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -emit-llvm-only -std=c++1y -g %s 2>&1 | FileCheck %s
1+
// RUN: not %clang_cc1 -emit-llvm-only -std=c++1y -g %s 2>&1 | FileCheck %s
22

33
struct foo {
44
auto func(); // CHECK: error: debug information for auto is not yet supported

test/CodeGenCXX/delete-two-arg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s
1+
// RUN: not %clang_cc1 -triple i686-pc-linux-gnu %s -o - -emit-llvm -verify | FileCheck %s
22

33
typedef __typeof(sizeof(int)) size_t;
44

test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-linux | FileCheck -check-prefix LINUX %s
2-
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -cxx-abi microsoft | FileCheck -check-prefix WIN32 %s
3-
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 -cxx-abi microsoft | FileCheck -check-prefix WIN64 %s
2+
// RUN: not %clang_cc1 -emit-llvm %s -o - -triple=i386-pc-win32 -cxx-abi microsoft | FileCheck -check-prefix WIN32 %s
3+
// RUN: not %clang_cc1 -emit-llvm %s -o - -triple=x86_64-pc-win32 -cxx-abi microsoft | FileCheck -check-prefix WIN64 %s
44

55
struct Empty {};
66

test/CodeGenCXX/references.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -triple x86_64-apple-darwin -verify -emit-llvm -o - %s | FileCheck %s
1+
// RUN: not %clang_cc1 -triple x86_64-apple-darwin -verify -emit-llvm -o - %s | FileCheck %s
22
void t1() {
33
// CHECK: define void @_Z2t1v
44
// CHECK: [[REFLOAD:%.*]] = load i32** @a, align 8

test/Driver/arc.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// RUN: %clang -ObjC -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2-
// RUN: %clang -x objective-c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3-
// RUN: %clang -x objective-c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4-
// RUN: %clang -x c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5-
// RUN: %clang -x c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
6-
// RUN: %clang -x objective-c -target x86_64-apple-darwin11 -mmacosx-version-min=10.5 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix UNSUPPORTED %s
1+
// RUN: not %clang -ObjC -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2+
// RUN: not %clang -x objective-c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3+
// RUN: not %clang -x objective-c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4+
// RUN: not %clang -x c -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5+
// RUN: not %clang -x c++ -target i386-apple-darwin10 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
6+
// RUN: not %clang -x objective-c -target x86_64-apple-darwin11 -mmacosx-version-min=10.5 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix UNSUPPORTED %s
77

88
// Just to test clang is working.
99
# foo

test/Driver/crash-report.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: rm -rf %t
22
// RUN: mkdir %t
3-
// RUN: env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s \
3+
// RUN: not env TMPDIR=%t TEMP=%t TMP=%t RC_DEBUG_OPTIONS=1 %clang -fsyntax-only %s \
44
// RUN: -F/tmp/ -I /tmp/ -idirafter /tmp/ -iquote /tmp/ -isystem /tmp/ \
55
// RUN: -iprefix /the/prefix -iwithprefix /tmp -iwithprefixbefore /tmp/ \
66
// RUN: -internal-isystem /tmp/ -internal-externc-isystem /tmp/ \
@@ -9,7 +9,7 @@
99
// RUN: cat %t/crash-report-*.sh | FileCheck --check-prefix=CHECKSH %s
1010
// REQUIRES: crash-recovery
1111

12-
// RUN: env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null 2>&1 | FileCheck %s
12+
// RUN: not env FORCE_CLANG_DIAGNOSTICS_CRASH=1 %clang -fsyntax-only -x c /dev/null 2>&1 | FileCheck %s
1313

1414
#pragma clang __debug parser_crash
1515
// CHECK: Preprocessed source(s) and associated run script(s) are located at:

test/Driver/debug-unsupported.c

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
// RUN: %clang -c -gstabs %s 2>&1 | FileCheck %s
2-
// RUN: %clang -c -gstabs+ %s 2>&1 | FileCheck %s
3-
// RUN: %clang -c -gcoff %s 2>&1 | FileCheck %s
4-
// RUN: %clang -c -gxcoff %s 2>&1 | FileCheck %s
5-
// RUN: %clang -c -gxcoff+ %s 2>&1 | FileCheck %s
6-
// RUN: %clang -c -gvms %s 2>&1 | FileCheck %s
7-
// RUN: %clang -c -gstabs1 %s 2>&1 | FileCheck %s
8-
// RUN: %clang -c -gcoff2 %s 2>&1 | FileCheck %s
9-
// RUN: %clang -c -gxcoff3 %s 2>&1 | FileCheck %s
10-
// RUN: %clang -c -gvms0 %s 2>&1 | FileCheck %s
11-
// RUN: %clang -c -gtoggle %s 2>&1 | FileCheck %s
1+
// RUN: not %clang -c -gstabs %s 2>&1 | FileCheck %s
2+
// RUN: not %clang -c -gstabs+ %s 2>&1 | FileCheck %s
3+
// RUN: not %clang -c -gcoff %s 2>&1 | FileCheck %s
4+
// RUN: not %clang -c -gxcoff %s 2>&1 | FileCheck %s
5+
// RUN: not %clang -c -gxcoff+ %s 2>&1 | FileCheck %s
6+
// RUN: not %clang -c -gvms %s 2>&1 | FileCheck %s
7+
// RUN: not %clang -c -gstabs1 %s 2>&1 | FileCheck %s
8+
// RUN: not %clang -c -gcoff2 %s 2>&1 | FileCheck %s
9+
// RUN: not %clang -c -gxcoff3 %s 2>&1 | FileCheck %s
10+
// RUN: not %clang -c -gvms0 %s 2>&1 | FileCheck %s
11+
// RUN: not %clang -c -gtoggle %s 2>&1 | FileCheck %s
1212
//
1313
// CHECK: error: unsupported option

test/Driver/hexagon-toolchain-elf.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@
108108
// CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\}}hexagon-as"{{.*}} "-march=v4"
109109
// CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\}}hexagon-ld"{{.*}} "-mv4"
110110

111-
// RUN: %clang -march=hexagonv2 -target hexagon-unknown-elf \
111+
// RUN: not %clang -march=hexagonv2 -target hexagon-unknown-elf \
112112
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
113-
// RUN: %clang -mcpu=hexagonv2 -target hexagon-unknown-elf \
113+
// RUN: not %clang -mcpu=hexagonv2 -target hexagon-unknown-elf \
114114
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
115-
// RUN: %clang -mv2 -target hexagon-unknown-elf \
115+
// RUN: not %clang -mv2 -target hexagon-unknown-elf \
116116
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
117117
// CHECK-UNKNOWN-V2: error: unknown target CPU 'hexagonv2'
118118

119-
// RUN: %clang -march=hexagonv3 -target hexagon-unknown-elf \
119+
// RUN: not %clang -march=hexagonv3 -target hexagon-unknown-elf \
120120
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
121-
// RUN: %clang -mcpu=hexagonv3 -target hexagon-unknown-elf \
121+
// RUN: not %clang -mcpu=hexagonv3 -target hexagon-unknown-elf \
122122
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
123-
// RUN: %clang -mv3 -target hexagon-unknown-elf \
123+
// RUN: not %clang -mv3 -target hexagon-unknown-elf \
124124
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
125125
// CHECK-UNKNOWN-V3: error: unknown target CPU 'hexagonv3'
126126

test/Driver/hexagon-toolchain.c

+6-6
Original file line numberDiff line numberDiff line change
@@ -108,19 +108,19 @@
108108
// CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\}}hexagon-as"{{.*}} "-march=v4"
109109
// CHECK010-NEXT: "{{.*}}/Inputs/hexagon_tree/qc/bin/../../gnu/bin{{/|\\}}hexagon-ld"{{.*}} "-mv4"
110110

111-
// RUN: %clang -march=hexagonv2 -target hexagon-unknown-linux \
111+
// RUN: not %clang -march=hexagonv2 -target hexagon-unknown-linux \
112112
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
113-
// RUN: %clang -mcpu=hexagonv2 -target hexagon-unknown-linux \
113+
// RUN: not %clang -mcpu=hexagonv2 -target hexagon-unknown-linux \
114114
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
115-
// RUN: %clang -mv2 -target hexagon-unknown-linux \
115+
// RUN: not %clang -mv2 -target hexagon-unknown-linux \
116116
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V2 %s
117117
// CHECK-UNKNOWN-V2: error: unknown target CPU 'hexagonv2'
118118

119-
// RUN: %clang -march=hexagonv3 -target hexagon-unknown-linux \
119+
// RUN: not %clang -march=hexagonv3 -target hexagon-unknown-linux \
120120
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
121-
// RUN: %clang -mcpu=hexagonv3 -target hexagon-unknown-linux \
121+
// RUN: not %clang -mcpu=hexagonv3 -target hexagon-unknown-linux \
122122
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
123-
// RUN: %clang -mv3 -target hexagon-unknown-linux \
123+
// RUN: not %clang -mv3 -target hexagon-unknown-linux \
124124
// RUN: %s 2>&1 | FileCheck -check-prefix=CHECK-UNKNOWN-V3 %s
125125
// CHECK-UNKNOWN-V3: error: unknown target CPU 'hexagonv3'
126126

test/Driver/inhibit-downstream-commands.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang -no-integrated-as %s 2>&1 | FileCheck %s
1+
// RUN: not %clang -no-integrated-as %s 2>&1 | FileCheck %s
22
// CHECK: error: unknown type name 'invalid'
33
// CHECK-NOT: clang: error: assembler command failed
44
// CHECK-NOT: clang: error: linker command failed

test/Driver/le32-unknown-nacl.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang -target le32-unknown-nacl -ccc-echo %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO
1+
// RUN: not %clang -target le32-unknown-nacl -ccc-echo %s -emit-llvm-only -c 2>&1 | FileCheck %s -check-prefix=ECHO
22
// RUN: %clang -target le32-unknown-nacl %s -emit-llvm -S -c -o - | FileCheck %s
33
// RUN: %clang -target le32-unknown-nacl %s -emit-llvm -S -c -pthread -o - | FileCheck %s -check-prefix=THREADS
44

test/Driver/nostdincxx.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -nostdinc++ %s 2>&1 | FileCheck %s
1+
// RUN: not %clangxx -nostdinc++ %s 2>&1 | FileCheck %s
22
// XFAIL: win32
33
// CHECK: file not found
44
#include <vector>

test/Driver/ppc-features.cpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
// RUN: %clang -target powerpc64-linux-gnu -faltivec -fsyntax-only %s
55
// RUN: %clang -target powerpc64-linux-gnu -maltivec -fsyntax-only %s
66

7-
// RUN: %clang -target i386-pc-win32 -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
8-
// RUN: %clang -target x86_64-unknown-freebsd -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
9-
// RUN: %clang -target armv6-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
10-
// RUN: %clang -target armv7-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
11-
// RUN: %clang -target mips-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
12-
// RUN: %clang -target mips64-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
13-
// RUN: %clang -target sparc-unknown-solaris -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
7+
// RUN: not %clang -target i386-pc-win32 -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
8+
// RUN: not %clang -target x86_64-unknown-freebsd -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
9+
// RUN: not %clang -target armv6-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
10+
// RUN: not %clang -target armv7-apple-darwin -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
11+
// RUN: not %clang -target mips-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
12+
// RUN: not %clang -target mips64-linux-gnu -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
13+
// RUN: not %clang -target sparc-unknown-solaris -faltivec -fsyntax-only %s 2>&1 | FileCheck %s
1414

1515
// CHECK: invalid argument '-faltivec' only allowed with 'ppc/ppc64'
1616

0 commit comments

Comments
 (0)