2013-07-30 02:40:38 +08:00
|
|
|
// Don't attempt slash switches on msys bash.
|
|
|
|
// REQUIRES: shell-preserves-root
|
|
|
|
|
|
|
|
// Note: we have to quote the /? option, otherwise some shells will try to
|
|
|
|
// expand the ? into a one-letter filename in the root directory, and make
|
|
|
|
// the test fail is such a file or directory exists.
|
2013-07-27 14:19:03 +08:00
|
|
|
|
2013-08-09 03:54:30 +08:00
|
|
|
// Note: %s must be preceded by --, otherwise it may be interpreted as a
|
|
|
|
// command-line option, e.g. on Mac where %s is commonly under /Users.
|
|
|
|
|
2013-07-27 08:23:45 +08:00
|
|
|
// Check that clang-cl options are not available by default.
|
|
|
|
// RUN: %clang -help | FileCheck %s -check-prefix=DEFAULT
|
|
|
|
// DEFAULT-NOT: CL.EXE COMPATIBILITY OPTIONS
|
|
|
|
// DEFAULT-NOT: {{/[?]}}
|
|
|
|
// DEFAULT-NOT: /help
|
2013-07-30 02:40:38 +08:00
|
|
|
// RUN: not %clang "/?"
|
2013-07-27 08:23:45 +08:00
|
|
|
// RUN: not %clang -?
|
2013-07-30 02:40:38 +08:00
|
|
|
// RUN: not %clang /help
|
2013-07-20 04:33:20 +08:00
|
|
|
|
2013-07-30 02:40:38 +08:00
|
|
|
// Check that /? and /help are available as clang-cl options.
|
|
|
|
// RUN: %clang_cl "/?" | FileCheck %s -check-prefix=CL
|
|
|
|
// RUN: %clang_cl /help | FileCheck %s -check-prefix=CL
|
2013-07-27 08:23:45 +08:00
|
|
|
// RUN: %clang_cl -help | FileCheck %s -check-prefix=CL
|
|
|
|
// CL: CL.EXE COMPATIBILITY OPTIONS
|
|
|
|
// CL: {{/[?]}}
|
|
|
|
// CL: /help
|
|
|
|
|
|
|
|
// Options which are not "core" clang options nor cl.exe compatible options
|
|
|
|
// are not available in clang-cl.
|
|
|
|
// DEFAULT: -fapple-kext
|
|
|
|
// CL-NOT: -fapple-kext
|
2013-08-09 03:54:30 +08:00
|
|
|
|
2013-09-10 09:07:07 +08:00
|
|
|
// RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=COMPILE %s
|
|
|
|
// COMPILE: "-fdiagnostics-format" "msvc"
|