blob: c811dbe3e7c8fbccc0740e6f49e1b16601de9534 [file] [log] [blame]
Hans Wennborg4a9ca972013-07-29 18:40:38 +00001// Don't attempt slash switches on msys bash.
2// REQUIRES: shell-preserves-root
3
4// Note: we have to quote the /? option, otherwise some shells will try to
5// expand the ? into a one-letter filename in the root directory, and make
6// the test fail is such a file or directory exists.
Hans Wennborg94478092013-07-27 06:19:03 +00007
Hans Wennborg6ddc6902013-07-27 00:23:45 +00008// Check that clang-cl options are not available by default.
9// RUN: %clang -help | FileCheck %s -check-prefix=DEFAULT
10// DEFAULT-NOT: CL.EXE COMPATIBILITY OPTIONS
11// DEFAULT-NOT: {{/[?]}}
12// DEFAULT-NOT: /help
Hans Wennborg4a9ca972013-07-29 18:40:38 +000013// RUN: not %clang "/?"
Hans Wennborg6ddc6902013-07-27 00:23:45 +000014// RUN: not %clang -?
Hans Wennborg4a9ca972013-07-29 18:40:38 +000015// RUN: not %clang /help
Hans Wennborge4b031c2013-07-19 20:33:20 +000016
Hans Wennborg4a9ca972013-07-29 18:40:38 +000017// Check that /? and /help are available as clang-cl options.
18// RUN: %clang_cl "/?" | FileCheck %s -check-prefix=CL
19// RUN: %clang_cl /help | FileCheck %s -check-prefix=CL
Hans Wennborg6ddc6902013-07-27 00:23:45 +000020// RUN: %clang_cl -help | FileCheck %s -check-prefix=CL
21// CL: CL.EXE COMPATIBILITY OPTIONS
22// CL: {{/[?]}}
23// CL: /help
24
25// Options which are not "core" clang options nor cl.exe compatible options
26// are not available in clang-cl.
27// DEFAULT: -fapple-kext
28// CL-NOT: -fapple-kext