2012-01-12 14:15:01 +08:00
|
|
|
// cygming have not supported integrated-as yet.
|
2012-12-11 15:06:09 +08:00
|
|
|
// REQUIRES: clang-driver
|
2012-01-12 14:15:01 +08:00
|
|
|
//
|
|
|
|
// Check to make sure clang is somewhat picky about -g options.
|
|
|
|
// (Delived from debug-options.c)
|
|
|
|
// rdar://10383444
|
2012-05-03 21:57:00 +08:00
|
|
|
// RUN: %clang -### -c -save-temps -integrated-as -g %s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=SAVE %s
|
2012-01-12 14:15:01 +08:00
|
|
|
//
|
|
|
|
// SAVE: "-cc1as"
|
|
|
|
// SAVE-NOT: "-g"
|
|
|
|
|
2011-12-31 10:36:23 +08:00
|
|
|
// Check to make sure clang with -g on a .s file gets passed.
|
|
|
|
// rdar://9275556
|
|
|
|
// RUN: touch %t.s
|
2012-05-03 21:57:00 +08:00
|
|
|
// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
|
2012-12-11 15:16:15 +08:00
|
|
|
// RUN: | FileCheck %s
|
2011-12-31 10:36:23 +08:00
|
|
|
//
|
2012-12-11 15:16:15 +08:00
|
|
|
// CHECK: "-cc1as"
|
|
|
|
// CHECK: "-g"
|
2013-01-18 05:38:06 +08:00
|
|
|
|
|
|
|
// Check to make sure clang with -g on a .s file gets passed -dwarf-debug-producer.
|
|
|
|
// rdar://12955296
|
|
|
|
// RUN: touch %t.s
|
|
|
|
// RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \
|
|
|
|
// RUN: | FileCheck -check-prefix=P %s
|
|
|
|
//
|
|
|
|
// P: "-cc1as"
|
|
|
|
// P: "-dwarf-debug-producer"
|