Bob Wilson | d5aad2a | 2014-11-04 22:28:48 +0000 | [diff] [blame] | 1 | // 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 Dunbar | 24c7f5e | 2009-12-18 02:43:17 +0000 | [diff] [blame] | 2 | // <rdar://problem/7256886> |
Kevin Enderby | 292dc08 | 2011-12-22 19:31:58 +0000 | [diff] [blame] | 3 | // RUN: touch %t.s |
Sebastian Pop | 422377c | 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 | ae2ec47 | 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 | 24c7f5e | 2009-12-18 02:43:17 +0000 | [diff] [blame] | 7 | |
Adrian Prantl | 324c03f | 2015-06-30 18:32:50 +0000 | [diff] [blame] | 8 | // CHECK: !0 = distinct !DICompileUnit( |
Duncan P. N. Exon Smith | f04be1f | 2015-03-03 17:25:55 +0000 | [diff] [blame] | 9 | // 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 Dunbar | 24c7f5e | 2009-12-18 02:43:17 +0000 | [diff] [blame] | 13 | |
| 14 | int x; |
Kevin Enderby | 292dc08 | 2011-12-22 19:31:58 +0000 | [diff] [blame] | 15 | |
| 16 | // S: "-dwarf-debug-flags" |
Kevin Enderby | ae2ec47 | 2013-01-17 21:38:06 +0000 | [diff] [blame] | 17 | |
| 18 | // P: "-dwarf-debug-producer" |