diff options
-rw-r--r-- | clang/test/Analysis/html-diags-multifile.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/2008-07-31-asm-labels.c | 6 | ||||
-rw-r--r-- | clang/test/CodeGen/PR3589-freestanding-libcalls.c | 2 | ||||
-rw-r--r-- | clang/test/CodeGen/bitfield-assign.c | 4 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/copy-assign-synthesis.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/copy-constructor-elim.cpp | 4 | ||||
-rw-r--r-- | clang/test/CodeGenCXX/implicit-instantiation-1.cpp | 2 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/bitfield-ivar-offsets.m | 2 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/blocks-1.m | 4 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/objc2-no-write-barrier.m | 4 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/objc2-write-barrier-5.m | 4 | ||||
-rw-r--r-- | clang/test/CodeGenObjC/protocols-lazy.m | 6 | ||||
-rw-r--r-- | clang/test/Driver/Xarch.c | 2 | ||||
-rw-r--r-- | clang/test/Driver/darwin-dsymutil.c | 2 | ||||
-rw-r--r-- | clang/test/Driver/darwin-verify-debug.c | 2 | ||||
-rw-r--r-- | clang/test/Driver/m_and_mm.c | 2 | ||||
-rw-r--r-- | clang/test/Frontend/darwin-version.c | 10 | ||||
-rw-r--r-- | clang/test/PCH/external-defs.c | 2 |
18 files changed, 31 insertions, 31 deletions
diff --git a/clang/test/Analysis/html-diags-multifile.c b/clang/test/Analysis/html-diags-multifile.c index 6e89faefc5b..e84cc3405a9 100644 --- a/clang/test/Analysis/html-diags-multifile.c +++ b/clang/test/Analysis/html-diags-multifile.c @@ -1,6 +1,6 @@ // RUN: mkdir -p %t.dir // RUN: %clang_cc1 -analyze -analyzer-output=html -analyzer-checker=core -o %t.dir -// RUN: ls %t.dir | grep report | count 0 +// RUN: ls %t.dir | not grep report // RUN: rm -fR %t.dir // This tests that we do not currently emit HTML diagnostics for reports that diff --git a/clang/test/CodeGen/2008-07-31-asm-labels.c b/clang/test/CodeGen/2008-07-31-asm-labels.c index 130ad6ba46c..733742bd85e 100644 --- a/clang/test/CodeGen/2008-07-31-asm-labels.c +++ b/clang/test/CodeGen/2008-07-31-asm-labels.c @@ -1,10 +1,10 @@ // RUN: %clang_cc1 -emit-llvm -o %t %s -// RUN: grep "@pipe()" %t | count 0 +// RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 -// RUN: grep 'g0' %t | count 0 +// RUN: not grep 'g0' %t // RUN: grep '_renamed' %t | count 2 // RUN: %clang_cc1 -DUSE_DEF -emit-llvm -o %t %s -// RUN: grep "@pipe()" %t | count 0 +// RUN: not grep "@pipe()" %t // RUN: grep '_thisIsNotAPipe' %t | count 3 // <rdr://6116729> diff --git a/clang/test/CodeGen/PR3589-freestanding-libcalls.c b/clang/test/CodeGen/PR3589-freestanding-libcalls.c index 40e5fb11214..5216e820411 100644 --- a/clang/test/CodeGen/PR3589-freestanding-libcalls.c +++ b/clang/test/CodeGen/PR3589-freestanding-libcalls.c @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -triple i386-unknown-unknown -emit-llvm %s -o - | grep 'declare i32 @printf' | count 1 // RUN: %clang_cc1 -triple i386-unknown-unknown -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 1 -// RUN: %clang_cc1 -triple i386-unknown-unknown -ffreestanding -O2 -emit-llvm %s -o - | grep 'declare i32 @puts' | count 0 +// RUN: %clang_cc1 -triple i386-unknown-unknown -ffreestanding -O2 -emit-llvm %s -o - | not grep 'declare i32 @puts' int printf(const char *, ...); diff --git a/clang/test/CodeGen/bitfield-assign.c b/clang/test/CodeGen/bitfield-assign.c index b8ab61339cf..058f5ed63d3 100644 --- a/clang/test/CodeGen/bitfield-assign.c +++ b/clang/test/CodeGen/bitfield-assign.c @@ -10,8 +10,8 @@ // Check that we got the right value. // RUN: %clang_cc1 -triple i386-unknown-unknown -O3 -emit-llvm -o %t %s -// RUN: grep 'load ' %t | count 0 -// RUN: grep "@g0" %t | count 0 +// RUN: not grep 'load ' %t +// RUN: not grep "@g0" %t struct s0 { int f0 : 2; diff --git a/clang/test/CodeGenCXX/copy-assign-synthesis.cpp b/clang/test/CodeGenCXX/copy-assign-synthesis.cpp index e9fc0c337c1..9c8ae887954 100644 --- a/clang/test/CodeGenCXX/copy-assign-synthesis.cpp +++ b/clang/test/CodeGenCXX/copy-assign-synthesis.cpp @@ -1,5 +1,5 @@ // RUN: %clang_cc1 -emit-llvm -o %t %s -// RUN: grep "_ZN1XaSERK1X" %t | count 0 +// RUN: not grep "_ZN1XaSERK1X" %t extern "C" int printf(...); diff --git a/clang/test/CodeGenCXX/copy-constructor-elim.cpp b/clang/test/CodeGenCXX/copy-constructor-elim.cpp index c883584fe02..ad3a87b9d5f 100644 --- a/clang/test/CodeGenCXX/copy-constructor-elim.cpp +++ b/clang/test/CodeGenCXX/copy-constructor-elim.cpp @@ -1,6 +1,6 @@ // RUN: %clang_cc1 -emit-llvm -o %t %s -// RUN: grep "_ZN1CC1ERK1C" %t | count 0 -// RUN: grep "_ZN1SC1ERK1S" %t | count 0 +// RUN: not grep "_ZN1CC1ERK1C" %t +// RUN: not grep "_ZN1SC1ERK1S" %t extern "C" int printf(...); diff --git a/clang/test/CodeGenCXX/implicit-instantiation-1.cpp b/clang/test/CodeGenCXX/implicit-instantiation-1.cpp index 0c826e4b20d..bf6a1415089 100644 --- a/clang/test/CodeGenCXX/implicit-instantiation-1.cpp +++ b/clang/test/CodeGenCXX/implicit-instantiation-1.cpp @@ -20,7 +20,7 @@ void foo(X<int> &xi, X<float> *xfp, int i, float f) { // RUN: grep "linkonce_odr.*_ZN1XIfE1fEf" %t | count 1 xfp->f(f); - // RUN: grep "linkonce_odr.*_ZN1XIfE1hEf" %t | count 0 + // RUN: not grep "linkonce_odr.*_ZN1XIfE1hEf" %t } diff --git a/clang/test/CodeGenObjC/bitfield-ivar-offsets.m b/clang/test/CodeGenObjC/bitfield-ivar-offsets.m index 7a07f27d265..f17d56af19c 100644 --- a/clang/test/CodeGenObjC/bitfield-ivar-offsets.m +++ b/clang/test/CodeGenObjC/bitfield-ivar-offsets.m @@ -6,7 +6,7 @@ // RUN: grep -F '@"OBJC_IVAR_$_I0._b3" = global i64 4, section "__DATA, __objc_ivar", align 8' %t // RUN: grep -F '@"OBJC_IVAR_$_I0._y" = global i64 6, section "__DATA, __objc_ivar", align 8' %t // RUN: grep -F '@"OBJC_IVAR_$_I0._b4" = global i64 7, section "__DATA, __objc_ivar", align 8' %t -// RUN: grep -F '@"OBJC_IVAR_$_I0." = global' %t | count 0 +// RUN: not grep -F '@"OBJC_IVAR_$_I0." = global' %t @interface I0 { unsigned _b0:4; diff --git a/clang/test/CodeGenObjC/blocks-1.m b/clang/test/CodeGenObjC/blocks-1.m index 99a11f91e4c..0d2c35096ae 100644 --- a/clang/test/CodeGenObjC/blocks-1.m +++ b/clang/test/CodeGenObjC/blocks-1.m @@ -4,7 +4,7 @@ // RUN: grep "__destroy_helper_block_" %t | count 4 // RUN: grep "__Block_byref_object_copy_" %t | count 2 // RUN: grep "__Block_byref_object_dispose_" %t | count 2 -// RUN: grep "i32 135)" %t | count 0 +// RUN: not grep "i32 135)" %t // RUN: grep "_Block_object_assign" %t | count 4 // RUN: grep "objc_read_weak" %t | count 2 // RUN: grep "objc_assign_weak" %t | count 3 @@ -14,7 +14,7 @@ // RUN: grep "__destroy_helper_block_" %t | count 4 // RUN: grep "__Block_byref_object_copy_" %t | count 2 // RUN: grep "__Block_byref_object_dispose_" %t | count 2 -// RUN: grep "i32 135)" %t | count 0 +// RUN: not grep "i32 135)" %t // RUN: grep "_Block_object_assign" %t | count 4 // RUN: grep "objc_read_weak" %t | count 2 // RUN: grep "objc_assign_weak" %t | count 3 diff --git a/clang/test/CodeGenObjC/objc2-no-write-barrier.m b/clang/test/CodeGenObjC/objc2-no-write-barrier.m index ece6b9d582b..16593f128d7 100644 --- a/clang/test/CodeGenObjC/objc2-no-write-barrier.m +++ b/clang/test/CodeGenObjC/objc2-no-write-barrier.m @@ -1,7 +1,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep 'objc_assign' %t | count 0 +// RUN: not grep 'objc_assign' %t // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep 'objc_assign' %t | count 0 +// RUN: not grep 'objc_assign' %t typedef struct { int ival; diff --git a/clang/test/CodeGenObjC/objc2-write-barrier-5.m b/clang/test/CodeGenObjC/objc2-write-barrier-5.m index 65a71a5a1d3..44af818a320 100644 --- a/clang/test/CodeGenObjC/objc2-write-barrier-5.m +++ b/clang/test/CodeGenObjC/objc2-write-barrier-5.m @@ -1,8 +1,8 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep objc_assign_ivar %t | count 0 +// RUN: not grep objc_assign_ivar %t // RUN: grep objc_assign_strongCast %t | count 8 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s -// RUN: grep objc_assign_ivar %t | count 0 +// RUN: not grep objc_assign_ivar %t // RUN: grep objc_assign_strongCast %t | count 8 @interface TestUnarchiver diff --git a/clang/test/CodeGenObjC/protocols-lazy.m b/clang/test/CodeGenObjC/protocols-lazy.m index 642f886a088..fba7454b954 100644 --- a/clang/test/CodeGenObjC/protocols-lazy.m +++ b/clang/test/CodeGenObjC/protocols-lazy.m @@ -1,11 +1,11 @@ // RUN: %clang_cc1 -emit-llvm -triple i686-apple-darwin8 -fobjc-runtime=macosx-fragile-10.5 -o %t %s // No object generated -// RUN: grep OBJC_PROTOCOL_P0 %t | count 0 +// RUN: not grep OBJC_PROTOCOL_P0 %t @protocol P0; // No object generated -// RUN: grep OBJC_PROTOCOL_P1 %t | count 0 +// RUN: not grep OBJC_PROTOCOL_P1 %t @protocol P1 -im1; @end // Definition triggered by protocol reference. @@ -16,7 +16,7 @@ void f0() { id x = @protocol(P2); } // Forward definition triggered by protocol reference. // RUN: grep OBJC_PROTOCOL_P3 %t | count 3 -// RUN: grep OBJC_PROTOCOL_INSTANCE_METHODS_P3 %t | count 0 +// RUN: not grep OBJC_PROTOCOL_INSTANCE_METHODS_P3 %t @protocol P3; void f1() { id x = @protocol(P3); } diff --git a/clang/test/Driver/Xarch.c b/clang/test/Driver/Xarch.c index 2523f5acac0..34f9340dd68 100644 --- a/clang/test/Driver/Xarch.c +++ b/clang/test/Driver/Xarch.c @@ -1,7 +1,7 @@ // RUN: %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -O2 %s -S -### 2> %t.log // RUN: grep ' "-O2" ' %t.log | count 1 // RUN: %clang -target i386-apple-darwin9 -m64 -Xarch_i386 -O2 %s -S -### 2> %t.log -// RUN: grep ' "-O2" ' %t.log | count 0 +// RUN: not grep ' "-O2" ' %t.log // RUN: grep "argument unused during compilation: '-Xarch_i386 -O2'" %t.log // RUN: not %clang -target i386-apple-darwin9 -m32 -Xarch_i386 -o -Xarch_i386 -S %s -S -Xarch_i386 -o 2> %t.log // RUN: grep "error: invalid Xarch argument: '-Xarch_i386 -o'" %t.log | count 2 diff --git a/clang/test/Driver/darwin-dsymutil.c b/clang/test/Driver/darwin-dsymutil.c index 440986639a0..b8c3083c935 100644 --- a/clang/test/Driver/darwin-dsymutil.c +++ b/clang/test/Driver/darwin-dsymutil.c @@ -35,7 +35,7 @@ // RUN: touch %t.o // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ // RUN: -o foo %t.o -g 2> %t -// RUN: grep "Dsymutil" %t | count 0 +// RUN: not grep "Dsymutil" %t // Check that we put the .dSYM in the right place. // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ diff --git a/clang/test/Driver/darwin-verify-debug.c b/clang/test/Driver/darwin-verify-debug.c index 677419a20c5..c419cef589d 100644 --- a/clang/test/Driver/darwin-verify-debug.c +++ b/clang/test/Driver/darwin-verify-debug.c @@ -31,4 +31,4 @@ // RUN: touch %t.o // RUN: %clang -target x86_64-apple-darwin10 -ccc-print-bindings \ // RUN: -verify -o foo %t.o -g 2> %t -// RUN: grep "Verify" %t | count 0 +// RUN: not grep "Verify" %t diff --git a/clang/test/Driver/m_and_mm.c b/clang/test/Driver/m_and_mm.c index eab2a04986a..18cf7abfa62 100644 --- a/clang/test/Driver/m_and_mm.c +++ b/clang/test/Driver/m_and_mm.c @@ -1,3 +1,3 @@ // RUN: %clang -### \ // RUN: -M -MM %s 2> %t -// RUN: grep '"-sys-header-deps"' %t | count 0 +// RUN: not grep '"-sys-header-deps"' %t diff --git a/clang/test/Frontend/darwin-version.c b/clang/test/Frontend/darwin-version.c index f9ce54b923d..7234ab48e3b 100644 --- a/clang/test/Frontend/darwin-version.c +++ b/clang/test/Frontend/darwin-version.c @@ -1,23 +1,23 @@ // RUN: %clang -target armv6-apple-darwin9 -dM -E -o %t %s -// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0 +// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=3.0 -dM -E -o %t %s // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '30000' | count 1 -// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | count 0 +// RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.0 -dM -E -o %t %s // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20000' | count 1 -// RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | count 0 +// RUN: not grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t // RUN: %clang -target armv6-apple-darwin9 -miphoneos-version-min=2.2 -dM -E -o %t %s // RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | grep '20200' | count 1 // RUN: %clang -target i686-apple-darwin8 -dM -E -o %t %s -// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0 +// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 // RUN: %clang -target i686-apple-darwin9 -dM -E -o %t %s // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 // RUN: %clang -target i686-apple-darwin10 -dM -E -o %t %s // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1060' | count 1 // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.4 -dM -E -o %t %s -// RUN: grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t | count 0 +// RUN: not grep '__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__' %t // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1040' | count 1 // RUN: %clang -target i686-apple-darwin9 -mmacosx-version-min=10.5 -dM -E -o %t %s // RUN: grep '__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__' %t | grep '1050' | count 1 diff --git a/clang/test/PCH/external-defs.c b/clang/test/PCH/external-defs.c index 5097859297a..5c2582a9c36 100644 --- a/clang/test/PCH/external-defs.c +++ b/clang/test/PCH/external-defs.c @@ -3,7 +3,7 @@ // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -include-pch %t.pch -emit-llvm -o %t %s // RUN: grep "@x = common global i32 0" %t | count 1 -// RUN: grep "@z" %t | count 0 +// RUN: not grep "@z" %t // RUN: grep "@x2 = global i32 19" %t | count 1 int x2 = 19; |