blob: 0b639b2959cb7d9cd4f682ba53d4290c33214458 [file] [log] [blame]
NAKAMURA Takumi5a5bb932012-01-12 06:15:01 +00001// cygming have not supported integrated-as yet.
NAKAMURA Takumi556d7132012-12-11 07:06:09 +00002// REQUIRES: clang-driver
NAKAMURA Takumi5a5bb932012-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 Atanasyane16a8c82012-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 Takumi5a5bb932012-01-12 06:15:01 +00009//
10// SAVE: "-cc1as"
11// SAVE-NOT: "-g"
12
NAKAMURA Takumi84a5dfd2011-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 Atanasyane16a8c82012-05-03 13:57:00 +000016// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
NAKAMURA Takumif8f4c952012-12-11 07:16:15 +000017// RUN: | FileCheck %s
NAKAMURA Takumi84a5dfd2011-12-31 02:36:23 +000018//
NAKAMURA Takumif8f4c952012-12-11 07:16:15 +000019// CHECK: "-cc1as"
20// CHECK: "-g"
Kevin Enderbyae2ec472013-01-17 21:38:06 +000021
22// Check to make sure clang with -g on a .s file gets passed -dwarf-debug-producer.
23// rdar://12955296
24// RUN: touch %t.s
25// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
26// RUN: | FileCheck -check-prefix=P %s
27//
28// P: "-cc1as"
29// P: "-dwarf-debug-producer"