blob: 13cd9c26195ca8c2c6003d75bfceaa98d81ebae8 [file] [log] [blame]
Hans Wennborg94478092013-07-27 06:19:03 +00001// Note: we have to quote the /? option, otherwise some shells will try
2// to expand the ? into a one-letter filename in the root directory,
3// and make the test fail if such a file or directory exists.
4
Hans Wennborg6ddc6902013-07-27 00:23:45 +00005// Check that clang-cl options are not available by default.
6// RUN: %clang -help | FileCheck %s -check-prefix=DEFAULT
7// DEFAULT-NOT: CL.EXE COMPATIBILITY OPTIONS
8// DEFAULT-NOT: {{/[?]}}
9// DEFAULT-NOT: /help
Hans Wennborg94478092013-07-27 06:19:03 +000010// RUN: not %clang "/?"
Hans Wennborg6ddc6902013-07-27 00:23:45 +000011// RUN: not %clang -?
12// RUN: not %clang /help
Hans Wennborge4b031c2013-07-19 20:33:20 +000013
Hans Wennborg94478092013-07-27 06:19:03 +000014// Check that "/?" and /help are available as clang-cl options.
15// RUN: %clang_cl "/?" | FileCheck %s -check-prefix=CL
Hans Wennborg6ddc6902013-07-27 00:23:45 +000016// RUN: %clang_cl /help | FileCheck %s -check-prefix=CL
17// RUN: %clang_cl -help | FileCheck %s -check-prefix=CL
18// CL: CL.EXE COMPATIBILITY OPTIONS
19// CL: {{/[?]}}
20// CL: /help
21
22// Options which are not "core" clang options nor cl.exe compatible options
23// are not available in clang-cl.
24// DEFAULT: -fapple-kext
25// CL-NOT: -fapple-kext