diff options
Diffstat (limited to 'clang/test')
-rw-r--r-- | clang/test/Driver/darwin-debug-flags.c | 4 | ||||
-rw-r--r-- | clang/test/Driver/debug-options.c | 7 |
2 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Driver/darwin-debug-flags.c b/clang/test/Driver/darwin-debug-flags.c index 326ca47411a..9ef4f6d6961 100644 --- a/clang/test/Driver/darwin-debug-flags.c +++ b/clang/test/Driver/darwin-debug-flags.c @@ -1,5 +1,7 @@ // RUN: env RC_DEBUG_OPTIONS=1 %clang -ccc-host-triple i386-apple-darwin9 -g -Os %s -emit-llvm -S -o - | FileCheck %s // <rdar://problem/7256886> +// RUN: touch %t.s +// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s // CHECK: !0 = metadata !{ // CHECK: -g -Os @@ -7,3 +9,5 @@ // CHECK: [ DW_TAG_compile_unit ] int x; + +// S: "-dwarf-debug-flags" diff --git a/clang/test/Driver/debug-options.c b/clang/test/Driver/debug-options.c index 867251971d2..0d42ee92d3a 100644 --- a/clang/test/Driver/debug-options.c +++ b/clang/test/Driver/debug-options.c @@ -5,6 +5,10 @@ // RUN: %clang -### -c -g3 %s 2>&1 | FileCheck -check-prefix=G3 %s // RUN: %clang -### -c -ganything %s 2>&1 | FileCheck -check-prefix=GANY %s // RUN: %clang -### -c -gfoo %s 2>&1 | FileCheck -check-prefix=GFOO %s +// Check to make sure clang with -g on a .s file gets passed. +// rdar://9275556 +// RUN: touch %t.s +// RUN: %clang -### -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s // // G: "-cc1" // G: "-g" @@ -17,3 +21,6 @@ // // GFOO: "-cc1" // GFOO-NOT: "-g" +// +// S: "-cc1as" +// S: "-g" |