Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 1 | // RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -g -Os %s -emit-llvm -S -o - | FileCheck %s |
Daniel Dunbar | f2d8b9f | 2009-12-18 02:43:17 +0000 | [diff] [blame] | 2 | // <rdar://problem/7256886> |
Kevin Enderby | 567003e | 2011-12-22 19:31:58 +0000 | [diff] [blame] | 3 | // RUN: touch %t.s |
Sebastian Pop | 9ec60df | 2012-01-20 22:01:23 +0000 | [diff] [blame] | 4 | // RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s |
Kevin Enderby | 0234179 | 2013-01-17 21:38:06 +0000 | [diff] [blame] | 5 | // <rdar://problem/12955296> |
| 6 | // RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s |
Daniel Dunbar | f2d8b9f | 2009-12-18 02:43:17 +0000 | [diff] [blame] | 7 | |
Devang Patel | 3477224 | 2011-05-03 16:19:38 +0000 | [diff] [blame] | 8 | // CHECK: !0 = metadata !{ |
Daniel Dunbar | 6e90047 | 2010-06-04 18:47:06 +0000 | [diff] [blame] | 9 | // CHECK: -g -Os |
Daniel Dunbar | 60baf0f | 2010-07-19 17:11:36 +0000 | [diff] [blame] | 10 | // CHECK: -mmacosx-version-min=10.5.0 |
Chris Lattner | b175666 | 2009-12-29 07:42:23 +0000 | [diff] [blame] | 11 | // CHECK: [ DW_TAG_compile_unit ] |
Daniel Dunbar | f2d8b9f | 2009-12-18 02:43:17 +0000 | [diff] [blame] | 12 | |
| 13 | int x; |
Kevin Enderby | 567003e | 2011-12-22 19:31:58 +0000 | [diff] [blame] | 14 | |
| 15 | // S: "-dwarf-debug-flags" |
Kevin Enderby | 0234179 | 2013-01-17 21:38:06 +0000 | [diff] [blame] | 16 | |
| 17 | // P: "-dwarf-debug-producer" |