]> granicus.if.org Git - clang/commitdiff
Move a non portable test to FileCheck, from Jonathan Gray!
authorDouglas Gregor <dgregor@apple.com>
Tue, 1 May 2012 01:42:40 +0000 (01:42 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 1 May 2012 01:42:40 +0000 (01:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155874 91177308-0d34-0410-b5e6-96231b3b80d8

test/Driver/clang-g-opts.c

index 4dbdf6167734c701743d62480f7e9bb34a45c4c8..6de9f98549da4877ce75c52794eb65caf829304b 100644 (file)
@@ -1,5 +1,14 @@
-// RUN: %clang -S -v -o %t %s        2>&1 | not grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g     2>&1 | grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g0    2>&1 | not grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g -g0 2>&1 | not grep -w -- -g
-// RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | grep -w -- -g
+// RUN: %clang -S -v -o %t %s        2>&1 | FileCheck %s
+// CHECK-NOT: -g
+
+// RUN: %clang -S -v -o %t %s -g     2>&1 | FileCheck %s
+// CHECK: -g
+
+// RUN: %clang -S -v -o %t %s -g0    2>&1 | FileCheck %s
+// CHECK-NOT: -g
+
+// RUN: %clang -S -v -o %t %s -g -g0 2>&1 | FileCheck %s
+// CHECK-NOT: -g
+
+// RUN: %clang -S -v -o %t %s -g0 -g 2>&1 | FileCheck %s
+// CHECK: -g