1 // Check to make sure clang is somewhat picky about -g options.
2 // (Delived from debug-options.c)
3 // rdar://10383444
4 // RUN: %clang -### -c -save-temps -integrated-as -g %s 2>&1 \
5 // RUN:   | FileCheck -check-prefix=SAVE %s
6 //
7 // SAVE: "-cc1as"
8 // SAVE-NOT: "-g"
9 
10 // Check to make sure clang with -g on a .s file gets passed.
11 // rdar://9275556
12 // RUN: touch %t.s
13 // RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
14 // RUN:   | FileCheck %s
15 //
16 // CHECK: "-cc1as"
17 // CHECK: "-g"
18 
19 // Check to make sure clang with -g on a .s file gets passed -dwarf-debug-producer.
20 // rdar://12955296
21 // RUN: touch %t.s
22 // RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
23 // RUN:   | FileCheck -check-prefix=P %s
24 //
25 // P: "-cc1as"
26 // P: "-dwarf-debug-producer"
27