2014-11-05 06:28:48 +08:00
|
|
|
// RUN: env RC_DEBUG_OPTIONS=1 %clang -target i386-apple-darwin9 -I "path with \spaces" -g -Os %s -emit-llvm -S -o - | FileCheck %s
|
2009-12-18 10:43:17 +08:00
|
|
|
// <rdar://problem/7256886>
|
2011-12-23 03:31:58 +08:00
|
|
|
// RUN: touch %t.s
|
2012-01-21 06:01:23 +08:00
|
|
|
// RUN: env RC_DEBUG_OPTIONS=1 %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
|
2013-01-18 05:38:06 +08:00
|
|
|
// <rdar://problem/12955296>
|
|
|
|
// RUN: %clang -### -target i386-apple-darwin9 -c -g %t.s 2>&1 | FileCheck -check-prefix=P %s
|
2009-12-18 10:43:17 +08:00
|
|
|
|
2015-07-01 02:32:50 +08:00
|
|
|
// CHECK: !0 = distinct !DICompileUnit(
|
2015-03-04 01:25:55 +08:00
|
|
|
// CHECK-SAME: flags:
|
|
|
|
// CHECK-SAME: -I path\5C with\5C \5C\5Cspaces
|
|
|
|
// CHECK-SAME: -g -Os
|
|
|
|
// CHECK-SAME: -mmacosx-version-min=10.5.0
|
2009-12-18 10:43:17 +08:00
|
|
|
|
|
|
|
int x;
|
2011-12-23 03:31:58 +08:00
|
|
|
|
|
|
|
// S: "-dwarf-debug-flags"
|
2013-01-18 05:38:06 +08:00
|
|
|
|
|
|
|
// P: "-dwarf-debug-producer"
|
2014-11-05 13:04:00 +08:00
|
|
|
|
|
|
|
// This depends on shell quoting.
|
|
|
|
// REQUIRES: shell
|