summaryrefslogtreecommitdiff
path: root/test/Driver/clang-g-opts.c
diff options
context:
space:
mode:
authorManman Ren <mren@apple.com>2013-07-03 20:45:07 +0000
committerManman Ren <mren@apple.com>2013-07-03 20:45:07 +0000
commite7830480e20e810d1cb2352a8ccc5f63ecf79e27 (patch)
tree1dc09bcb315707120a323ea6e499cdb515464da7 /test/Driver/clang-g-opts.c
parente3bef0f4f0b238a9aa22a1b14d36617ff65970dd (diff)
downloadclang-e7830480e20e810d1cb2352a8ccc5f63ecf79e27.tar.gz
Update testing cases to check dwarf-2 for Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@185577 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Driver/clang-g-opts.c')
-rw-r--r--test/Driver/clang-g-opts.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/test/Driver/clang-g-opts.c b/test/Driver/clang-g-opts.c
index ee4eed7e89..9ca1fd38e4 100644
--- a/test/Driver/clang-g-opts.c
+++ b/test/Driver/clang-g-opts.c
@@ -1,10 +1,16 @@
// 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 -g -target x86_64-linux-gnu 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
+// RUN: %clang -### -S %s -g -target x86_64-apple-darwin 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %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
+// RUN: %clang -### -S %s -g0 -g -target x86_64-linux-gnu 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G %s
+// RUN: %clang -### -S %s -g0 -g -target x86_64-apple-darwin 2>&1 \
+// RUN: | FileCheck --check-prefix=CHECK-WITH-G-DARWIN %s
// CHECK-WITHOUT-G-NOT: "-g"
-// Can be -gdwarf.
-// CHECK-WITH-G: "-g
+// CHECK-WITH-G: "-g"
+// CHECK-WITH-G-DARWIN: "-gdwarf-2"