From 1de801a7120e0e8a2c7614265880452a20a38a29 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Tue, 1 May 2012 01:42:40 +0000 Subject: [PATCH] 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 --- test/Driver/clang-g-opts.c | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) 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 -- 2.40.0