diff options
Diffstat (limited to 'test/Driver/clang-g-opts.c')
-rw-r--r-- | test/Driver/clang-g-opts.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/test/Driver/clang-g-opts.c b/test/Driver/clang-g-opts.c index 4dbdf6167734..f5d09fda3dd8 100644 --- a/test/Driver/clang-g-opts.c +++ b/test/Driver/clang-g-opts.c @@ -1,5 +1,9 @@ -// 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 %s 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s +// RUN: %clang -### -S %s -g 2>&1 | FileCheck --check-prefix=CHECK-WITH-G %s +// RUN: %clang -### -S %s -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s +// RUN: %clang -### -S %s -g -g0 2>&1 | FileCheck --check-prefix=CHECK-WITHOUT-G %s +// RUN: %clang -### -S %s -g0 -g 2>&1 | FileCheck --check-prefix=CHECK-WITH-G %s + +// CHECK-WITHOUT-G-NOT: "-g" +// CHECK-WITH-G: "-g" + |