summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/debug-options-as.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Driver/debug-options-as.c')
-rw-r--r--clang/test/Driver/debug-options-as.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/Driver/debug-options-as.c b/clang/test/Driver/debug-options-as.c
index f512f1523bc..0b639b2959c 100644
--- a/clang/test/Driver/debug-options-as.c
+++ b/clang/test/Driver/debug-options-as.c
@@ -18,3 +18,12 @@
//
// CHECK: "-cc1as"
// CHECK: "-g"
+
+// Check to make sure clang with -g on a .s file gets passed -dwarf-debug-producer.
+// rdar://12955296
+// RUN: touch %t.s
+// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
+// RUN: | FileCheck -check-prefix=P %s
+//
+// P: "-cc1as"
+// P: "-dwarf-debug-producer"
OpenPOWER on IntegriCloud