blob: 1187a3110a224aba8e2744a9a7e040edbf80160a [file] [log] [blame]
Rafael Espindola9f0da2f2013-07-28 17:13:24 +00001// Note: we have to quote the options with a /, otherwise some shells will try
2// to expand it and make test fail.
Hans Wennborg94478092013-07-27 06:19:03 +00003
Hans Wennborg6ddc6902013-07-27 00:23:45 +00004// Check that clang-cl options are not available by default.
5// RUN: %clang -help | FileCheck %s -check-prefix=DEFAULT
6// DEFAULT-NOT: CL.EXE COMPATIBILITY OPTIONS
7// DEFAULT-NOT: {{/[?]}}
8// DEFAULT-NOT: /help
Rafael Espindola9f0da2f2013-07-28 17:13:24 +00009// RUN: not %clang '/?'
Hans Wennborg6ddc6902013-07-27 00:23:45 +000010// RUN: not %clang -?
Rafael Espindola9f0da2f2013-07-28 17:13:24 +000011// RUN: not %clang '/help'
Hans Wennborge4b031c2013-07-19 20:33:20 +000012
Rafael Espindola9f0da2f2013-07-28 17:13:24 +000013// Check that '/?' and '/help' are available as clang-cl options.
14// RUN: %clang_cl '/?' | FileCheck %s -check-prefix=CL
15// RUN: %clang_cl '/help' | FileCheck %s -check-prefix=CL
Hans Wennborg6ddc6902013-07-27 00:23:45 +000016// RUN: %clang_cl -help | FileCheck %s -check-prefix=CL
17// CL: CL.EXE COMPATIBILITY OPTIONS
18// CL: {{/[?]}}
19// CL: /help
20
21// Options which are not "core" clang options nor cl.exe compatible options
22// are not available in clang-cl.
23// DEFAULT: -fapple-kext
24// CL-NOT: -fapple-kext
NAKAMURA Takumic91dd312013-07-29 01:37:10 +000025
26// Don't attempt slash switches on msys bash.
27// REQUIRES: shell-preserves-root