blob: f512f1523bc79a93b1bae285649deefe340c9ff3 [file] [log] [blame]
NAKAMURA Takumib4218a32012-01-12 06:15:01 +00001// cygming have not supported integrated-as yet.
NAKAMURA Takumi5e4ccb42012-12-11 07:06:09 +00002// REQUIRES: clang-driver
NAKAMURA Takumib4218a32012-01-12 06:15:01 +00003//
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 \
NAKAMURA Takumicfe7c282012-12-11 07:16:15 +000017// RUN: | FileCheck %s
NAKAMURA Takumi868f65c2011-12-31 02:36:23 +000018//
NAKAMURA Takumicfe7c282012-12-11 07:16:15 +000019// CHECK: "-cc1as"
20// CHECK: "-g"