xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/darwin-debug-flags.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -I "path with \spaces" -g -Os %s  -emit-llvm -S -o - | FileCheck %s
2f4a2713aSLionel Sambuc // <rdar://problem/7256886>
3f4a2713aSLionel Sambuc // RUN: touch %t.s
4f4a2713aSLionel Sambuc // RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
5f4a2713aSLionel Sambuc // <rdar://problem/12955296>
6f4a2713aSLionel Sambuc // RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
7f4a2713aSLionel Sambuc 
8*0a6a1f1dSLionel Sambuc // CHECK: !0 = !{
9*0a6a1f1dSLionel Sambuc // CHECK: -I path\5C with\5C \5C\5Cspaces
10f4a2713aSLionel Sambuc // CHECK: -g -Os
11f4a2713aSLionel Sambuc // CHECK: -mmacosx-version-min=10.5.0
12f4a2713aSLionel Sambuc // CHECK: [ DW_TAG_compile_unit ]
13f4a2713aSLionel Sambuc 
14f4a2713aSLionel Sambuc int x;
15f4a2713aSLionel Sambuc 
16f4a2713aSLionel Sambuc // S: "-dwarf-debug-flags"
17f4a2713aSLionel Sambuc 
18f4a2713aSLionel Sambuc // P: "-dwarf-debug-producer"
19*0a6a1f1dSLionel Sambuc 
20*0a6a1f1dSLionel Sambuc // This depends on shell quoting.
21*0a6a1f1dSLionel Sambuc // REQUIRES: shell
22