xref: /aosp_15_r20/external/clang/test/Driver/darwin-debug-flags.c (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li // 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*67e74705SXin Li // <rdar://problem/7256886>
3*67e74705SXin Li // RUN: touch %t.s
4*67e74705SXin Li // RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
5*67e74705SXin Li // <rdar://problem/12955296>
6*67e74705SXin Li // RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
7*67e74705SXin Li 
8*67e74705SXin Li // CHECK: !0 = distinct !DICompileUnit(
9*67e74705SXin Li // CHECK-SAME:                flags:
10*67e74705SXin Li // CHECK-SAME:                -I path\5C with\5C \5C\5Cspaces
11*67e74705SXin Li // CHECK-SAME:                -g -Os
12*67e74705SXin Li // CHECK-SAME:                -mmacosx-version-min=10.5.0
13*67e74705SXin Li 
14*67e74705SXin Li int x;
15*67e74705SXin Li 
16*67e74705SXin Li // S: "-dwarf-debug-flags"
17*67e74705SXin Li 
18*67e74705SXin Li // P: "-dwarf-debug-producer"
19