1 // cygming have not supported integrated-as yet. 2 // REQUIRES: clang-driver 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 -integrated-as -g %s 2>&1 \ 8 // RUN: | FileCheck -check-prefix=SAVE %s 9 // 10 // SAVE: "-cc1as" 11 // SAVE-NOT: "-g" 12 13 // Check to make sure clang with -g on a .s file gets passed. 14 // rdar://9275556 15 // RUN: touch %t.s 16 // RUN: %clang -### -c -integrated-as -g %t.s 2>&1 \ 17 // RUN: | FileCheck %s 18 // 19 // CHECK: "-cc1as" 20 // CHECK: "-g" 21 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" 30