blob: f98e9ce7bd8cd68272c53d068f65c39f4872eb7f [file] [log] [blame]
Sebastian Pop9ec60df2012-01-20 22:01:23 +00001// RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -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
Devang Patel34772242011-05-03 16:19:38 +00008// CHECK: !0 = metadata !{
Daniel Dunbar6e900472010-06-04 18:47:06 +00009// CHECK: -g -Os
Daniel Dunbar60baf0f2010-07-19 17:11:36 +000010// CHECK: -mmacosx-version-min=10.5.0
Chris Lattnerb1756662009-12-29 07:42:23 +000011// CHECK: [ DW_TAG_compile_unit ]
Daniel Dunbarf2d8b9f2009-12-18 02:43:17 +000012
13int x;
Kevin Enderby567003e2011-12-22 19:31:58 +000014
15// S: "-dwarf-debug-flags"
Kevin Enderby02341792013-01-17 21:38:06 +000016
17// P: "-dwarf-debug-producer"