llvm-project/clang/test/Driver/debug-options.c
NAKAMURA Takumi 84a5dfdf72 Split out clang/test/Driver/debug-options-as.c from debug-options.c, and mark it as XFAIL: mingw32.
Mingw32 target has not supported integrated-as yet.

llvm-svn: 147386
2011-12-31 02:36:23 +00:00

20 lines
493 B
C

// Check to make sure clang is somewhat picky about -g options.
// rdar://10383444
// RUN: %clang -### -c -g %s 2>&1 | FileCheck -check-prefix=G %s
// RUN: %clang -### -c -g3 %s 2>&1 | FileCheck -check-prefix=G3 %s
// RUN: %clang -### -c -ganything %s 2>&1 | FileCheck -check-prefix=GANY %s
// RUN: %clang -### -c -gfoo %s 2>&1 | FileCheck -check-prefix=GFOO %s
//
// G: "-cc1"
// G: "-g"
//
// G3: "-cc1"
// G3: "-g"
//
// GANY: "-cc1"
// GANY-NOT: "-g"
//
// GFOO: "-cc1"
// GFOO-NOT: "-g"