Rafael Espindola | 9f0da2f | 2013-07-28 17:13:24 +0000 | [diff] [blame] | 1 | // Note: we have to quote the options with a /, otherwise some shells will try |
| 2 | // to expand it and make test fail. |
Hans Wennborg | 9447809 | 2013-07-27 06:19:03 +0000 | [diff] [blame] | 3 | |
Hans Wennborg | 6ddc690 | 2013-07-27 00:23:45 +0000 | [diff] [blame] | 4 | // 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 Espindola | 9f0da2f | 2013-07-28 17:13:24 +0000 | [diff] [blame] | 9 | // RUN: not %clang '/?' |
Hans Wennborg | 6ddc690 | 2013-07-27 00:23:45 +0000 | [diff] [blame] | 10 | // RUN: not %clang -? |
Rafael Espindola | 9f0da2f | 2013-07-28 17:13:24 +0000 | [diff] [blame] | 11 | // RUN: not %clang '/help' |
Hans Wennborg | e4b031c | 2013-07-19 20:33:20 +0000 | [diff] [blame] | 12 | |
Rafael Espindola | 9f0da2f | 2013-07-28 17:13:24 +0000 | [diff] [blame] | 13 | // 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 Wennborg | 6ddc690 | 2013-07-27 00:23:45 +0000 | [diff] [blame] | 16 | // 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 Takumi | c91dd31 | 2013-07-29 01:37:10 +0000 | [diff] [blame] | 25 | |
| 26 | // Don't attempt slash switches on msys bash. |
| 27 | // REQUIRES: shell-preserves-root |