blob: 57036e42db0704b907ce1d9833cc3036c127d1ed [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
Simon Atanasyanc4b69f02012-05-03 13:57:00 +00007// RUN: %clang -### -c -save-temps -integrated-as -g %s 2>&1 \
8// RUN: | FileCheck -check-prefix=SAVE %s
NAKAMURA Takumib4218a32012-01-12 06:15:01 +00009//
10// SAVE: "-cc1as"
11// SAVE-NOT: "-g"
12
NAKAMURA Takumi868f65c2011-12-31 02:36:23 +000013// Check to make sure clang with -g on a .s file gets passed.
14// rdar://9275556
15// RUN: touch %t.s
Simon Atanasyanc4b69f02012-05-03 13:57:00 +000016// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
17// RUN: | FileCheck -check-prefix=S %s
NAKAMURA Takumi868f65c2011-12-31 02:36:23 +000018//
NAKAMURA Takumi868f65c2011-12-31 02:36:23 +000019// S: "-cc1as"
20// S: "-g"