1 // RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -g -Os %s  -emit-llvm -S -o - | FileCheck %s
2 // <rdar://problem/7256886>
3 // RUN: touch %t.s
4 // RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
5 // <rdar://problem/12955296>
6 // RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
7 
8 // CHECK: !0 = metadata !{
9 // CHECK: -g -Os
10 // CHECK: -mmacosx-version-min=10.5.0
11 // CHECK: [ DW_TAG_compile_unit ]
12 
13 int x;
14 
15 // S: "-dwarf-debug-flags"
16 
17 // P: "-dwarf-debug-producer"
18