blob: abe3f6953e32c363452204de78f318a2eb5641e2 [file] [log] [blame]
Stephen Hines176edba2014-12-01 14:53:08 -08001// 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 Dunbarf2d8b9f2009-12-18 02:43:17 +00002// <rdar://problem/7256886>
Kevin Enderby567003e2011-12-22 19:31:58 +00003// RUN: touch %t.s
Sebastian Pop9ec60df2012-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 Enderby02341792013-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 Dunbarf2d8b9f2009-12-18 02:43:17 +00007
Stephen Hines0e2c34f2015-03-23 12:09:02 -07008// CHECK: !0 = !{
Stephen Hines176edba2014-12-01 14:53:08 -08009// CHECK: -I path\5C with\5C \5C\5Cspaces
Daniel Dunbar6e900472010-06-04 18:47:06 +000010// CHECK: -g -Os
Daniel Dunbar60baf0f2010-07-19 17:11:36 +000011// CHECK: -mmacosx-version-min=10.5.0
Chris Lattnerb1756662009-12-29 07:42:23 +000012// CHECK: [ DW_TAG_compile_unit ]
Daniel Dunbarf2d8b9f2009-12-18 02:43:17 +000013
14int x;
Kevin Enderby567003e2011-12-22 19:31:58 +000015
16// S: "-dwarf-debug-flags"
Kevin Enderby02341792013-01-17 21:38:06 +000017
18// P: "-dwarf-debug-producer"
Stephen Hines176edba2014-12-01 14:53:08 -080019
20// This depends on shell quoting.
21// REQUIRES: shell