blob: e37680e7f94a1a48167f2c843dfe703ffa3d2953 [file] [log] [blame]
Bob Wilsond5aad2a2014-11-04 22:28:48 +00001// RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -I "path with \spaces" -g -Os %s -emit-llvm -S -o - | FileCheck %s
Daniel Dunbar24c7f5e2009-12-18 02:43:17 +00002// <rdar://problem/7256886>
Kevin Enderby292dc082011-12-22 19:31:58 +00003// RUN: touch %t.s
Sebastian Pop422377c2012-01-20 22:01:23 +00004// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
Kevin Enderbyae2ec472013-01-17 21:38:06 +00005// <rdar://problem/12955296>
6// RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
Daniel Dunbar24c7f5e2009-12-18 02:43:17 +00007
Peter Collingbourneeeb56ab2016-09-13 01:13:19 +00008// CHECK: distinct !DICompileUnit(
Duncan P. N. Exon Smithf04be1f2015-03-03 17:25:55 +00009// CHECK-SAME: flags:
10// CHECK-SAME: -I path\5C with\5C \5C\5Cspaces
11// CHECK-SAME: -g -Os
12// CHECK-SAME: -mmacosx-version-min=10.5.0
Daniel Dunbar24c7f5e2009-12-18 02:43:17 +000013
14int x;
Kevin Enderby292dc082011-12-22 19:31:58 +000015
16// S: "-dwarf-debug-flags"
Kevin Enderbyae2ec472013-01-17 21:38:06 +000017
18// P: "-dwarf-debug-producer"