From: Douglas Gregor Date: Tue, 1 May 2012 01:42:40 +0000 (+0000) Subject: Move a non portable test to FileCheck, from Jonathan Gray! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1de801a7120e0e8a2c7614265880452a20a38a29;p=clang Move a non portable test to FileCheck, from Jonathan Gray! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155874 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/clang-g-opts.c b/test/Driver/clang-g-opts.c index 4dbdf61677..6de9f98549 100644 --- a/test/Driver/clang-g-opts.c +++ b/test/Driver/clang-g-opts.c @@ -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