14a9ca978SHans Wennborg // Note: we have to quote the /? option, otherwise some shells will try to 24a9ca978SHans Wennborg // expand the ? into a one-letter filename in the root directory, and make 34a9ca978SHans Wennborg // the test fail is such a file or directory exists. 494478097SHans Wennborg 5614f7073SHans Wennborg // Note: %s must be preceded by --, otherwise it may be interpreted as a 6614f7073SHans Wennborg // command-line option, e.g. on Mac where %s is commonly under /Users. 7614f7073SHans Wennborg 86ddc6901SHans Wennborg // Check that clang-cl options are not available by default. 96ddc6901SHans Wennborg // RUN: %clang -help | FileCheck %s -check-prefix=DEFAULT 106ddc6901SHans Wennborg // DEFAULT-NOT: CL.EXE COMPATIBILITY OPTIONS 116ddc6901SHans Wennborg // DEFAULT-NOT: {{/[?]}} 126ddc6901SHans Wennborg // DEFAULT-NOT: /help 134a9ca978SHans Wennborg // RUN: not %clang "/?" 146ddc6901SHans Wennborg // RUN: not %clang -? 154a9ca978SHans Wennborg // RUN: not %clang /help 16e4b031caSHans Wennborg 174a9ca978SHans Wennborg // Check that /? and /help are available as clang-cl options. 184a9ca978SHans Wennborg // RUN: %clang_cl "/?" | FileCheck %s -check-prefix=CL 194a9ca978SHans Wennborg // RUN: %clang_cl /help | FileCheck %s -check-prefix=CL 206ddc6901SHans Wennborg // RUN: %clang_cl -help | FileCheck %s -check-prefix=CL 216ddc6901SHans Wennborg // CL: CL.EXE COMPATIBILITY OPTIONS 226ddc6901SHans Wennborg // CL: {{/[?]}} 236ddc6901SHans Wennborg // CL: /help 246ddc6901SHans Wennborg 256ddc6901SHans Wennborg // Options which are not "core" clang options nor cl.exe compatible options 266ddc6901SHans Wennborg // are not available in clang-cl. 276ddc6901SHans Wennborg // DEFAULT: -fapple-kext 286ddc6901SHans Wennborg // CL-NOT: -fapple-kext 29614f7073SHans Wennborg 30*81f74480SHans Wennborg // RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=COMPILE %s 31*81f74480SHans Wennborg // COMPILE: "-fdiagnostics-format" "msvc" 32