annotate clang/test/Driver/cl.c @ 221:79ff65ed7e25

LLVM12 Original
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Tue, 15 Jun 2021 19:15:29 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // Note: we have to quote the /? option, otherwise some shells will try to
anatofuz
parents:
diff changeset
2 // expand the ? into a one-letter filename in the root directory, and make
anatofuz
parents:
diff changeset
3 // the test fail is such a file or directory exists.
anatofuz
parents:
diff changeset
4
anatofuz
parents:
diff changeset
5 // Note: %s must be preceded by --, otherwise it may be interpreted as a
anatofuz
parents:
diff changeset
6 // command-line option, e.g. on Mac where %s is commonly under /Users.
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // Check that clang-cl options are not available by default.
anatofuz
parents:
diff changeset
9 // RUN: %clang -help | FileCheck %s -check-prefix=DEFAULT
anatofuz
parents:
diff changeset
10 // DEFAULT-NOT: CL.EXE COMPATIBILITY OPTIONS
anatofuz
parents:
diff changeset
11 // DEFAULT-NOT: {{/[?]}}
anatofuz
parents:
diff changeset
12 // DEFAULT-NOT: /help
anatofuz
parents:
diff changeset
13 // RUN: not %clang "/?"
anatofuz
parents:
diff changeset
14 // RUN: not %clang -?
anatofuz
parents:
diff changeset
15 // RUN: not %clang /help
anatofuz
parents:
diff changeset
16
anatofuz
parents:
diff changeset
17 // Check that /? and /help are available as clang-cl options.
anatofuz
parents:
diff changeset
18 // RUN: %clang_cl "/?" | FileCheck %s -check-prefix=CL
anatofuz
parents:
diff changeset
19 // RUN: %clang_cl /help | FileCheck %s -check-prefix=CL
anatofuz
parents:
diff changeset
20 // RUN: %clang_cl -help | FileCheck %s -check-prefix=CL
anatofuz
parents:
diff changeset
21 // CL: CL.EXE COMPATIBILITY OPTIONS
anatofuz
parents:
diff changeset
22 // CL: {{/[?]}}
anatofuz
parents:
diff changeset
23 // CL: /help
anatofuz
parents:
diff changeset
24
anatofuz
parents:
diff changeset
25 // Options which are not "core" clang options nor cl.exe compatible options
anatofuz
parents:
diff changeset
26 // are not available in clang-cl.
anatofuz
parents:
diff changeset
27 // DEFAULT: -fapple-kext
anatofuz
parents:
diff changeset
28 // CL-NOT: -fapple-kext
anatofuz
parents:
diff changeset
29
anatofuz
parents:
diff changeset
30 // RUN: %clang_cl /c -### -- %s 2>&1 | FileCheck -check-prefix=COMPILE %s
anatofuz
parents:
diff changeset
31 // COMPILE: "-fdiagnostics-format" "msvc"