blob: a1dbe2e048df3be178dce427fe432f8df4dfb3e8 [file] [log] [blame]
NAKAMURA Takumib4218a32012-01-12 06:15:01 +00001// cygming have not supported integrated-as yet.
2// XFAIL: cygwin,mingw32
3//
4// Check to make sure clang is somewhat picky about -g options.
5// (Delived from debug-options.c)
6// rdar://10383444
7// RUN: %clang -### -c -save-temps -g %s 2>&1 | FileCheck -check-prefix=SAVE %s
8//
9// SAVE: "-cc1as"
10// SAVE-NOT: "-g"
11
NAKAMURA Takumi868f65c2011-12-31 02:36:23 +000012// Check to make sure clang with -g on a .s file gets passed.
13// rdar://9275556
14// RUN: touch %t.s
15// RUN: %clang -### -c -g %t.s 2>&1 | FileCheck -check-prefix=S %s
16//
NAKAMURA Takumi868f65c2011-12-31 02:36:23 +000017// S: "-cc1as"
18// S: "-g"