xref: /minix3/external/bsd/llvm/dist/clang/test/Driver/darwin-debug-flags.c (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1  // RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -I "path with \spaces" -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 = !{
9  // CHECK: -I path\5C with\5C \5C\5Cspaces
10  // CHECK: -g -Os
11  // CHECK: -mmacosx-version-min=10.5.0
12  // CHECK: [ DW_TAG_compile_unit ]
13  
14  int x;
15  
16  // S: "-dwarf-debug-flags"
17  
18  // P: "-dwarf-debug-producer"
19  
20  // This depends on shell quoting.
21  // REQUIRES: shell
22