summaryrefslogtreecommitdiff
path: root/test/Driver/clang-g-opts.c
diff options
context:
space:
mode:
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"