[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / parse-progname.c
blobed907ea12e00da447df0f17c8cb6649630a4c781
1 // REQUIRES: shell, arm-registered-target
3 // RUN: mkdir -p %t
5 // RUN: ln -fs %clang %t/clang++
6 // RUN: ln -fs %clang %t/clang++3.5.0
7 // RUN: ln -fs %clang %t/clang++-3.5
8 // RUN: ln -fs %clang %t/clang++-tot
9 // RUN: ln -fs %clang %t/clang-c++
10 // RUN: ln -fs %clang %t/clang-g++
11 // RUN: ln -fs %clang %t/c++
12 // RUN: ln -fs %clang %t/foo-clang++
13 // RUN: ln -fs %clang %t/foo-clang++-3.5
14 // RUN: ln -fs %clang %t/foo-clang++3.5
15 // RUN: %t/clang++ -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
16 // RUN: %t/clang++3.5.0 -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
17 // RUN: %t/clang++-3.5 -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
18 // RUN: %t/clang++-tot -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
19 // RUN: %t/clang-c++ -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
20 // RUN: %t/clang-g++ -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
21 // RUN: %t/c++ -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
22 // RUN: %t/foo-clang++ -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
23 // RUN: %t/foo-clang++-3.5 -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
24 // RUN: %t/foo-clang++3.5 -### %s 2>&1 | FileCheck -check-prefix=CXXMODE %s
25 // CXXMODE: "-x" "c++"
28 // RUN: ln -fs %clang %t/clang-cl
29 // RUN: ln -fs %clang %t/cl
30 // RUN: ln -fs %clang %t/cl.exe
31 // RUN: ln -fs %clang %t/clang-cl3.5
32 // RUN: ln -fs %clang %t/clang-cl-3.5
33 // Note: use -- in front of the filename so it's not mistaken for an option on
34 // filesystems that use slashes for dir separators.
35 // RUN: %t/clang-cl -### -- %s 2>&1 | FileCheck -check-prefix=CLMODE %s
36 // RUN: %t/cl -### -- %s 2>&1 | FileCheck -check-prefix=CLMODE %s
37 // RUN: %t/cl.exe -### -- %s 2>&1 | FileCheck -check-prefix=CLMODE %s
38 // RUN: %t/clang-cl3.5 -### -- %s 2>&1 | FileCheck -check-prefix=CLMODE %s
39 // RUN: %t/clang-cl-3.5 -### -- %s 2>&1 | FileCheck -check-prefix=CLMODE %s
40 // CLMODE: "-fdiagnostics-format" "msvc"
43 // RUN: ln -fs %clang %t/clang-cpp
44 // RUN: ln -fs %clang %t/cpp
45 // RUN: %t/clang-cpp -### %s 2>&1 | FileCheck -check-prefix=CPPMODE %s
46 // RUN: %t/cpp -### %s 2>&1 | FileCheck -check-prefix=CPPMODE %s
47 // CPPMODE: "-E"
50 // RUN: ln -fs %clang %t/cl-clang
51 // RUN: %t/cl-clang -### %s 2>&1 | FileCheck -check-prefix=CMODE %s
52 // CMODE: "-x" "c"
53 // CMODE-NOT: "-fdiagnostics-format" "msvc"
56 // RUN: ln -fs %clang %t/arm-linux-gnueabi-clang
57 // RUN: %t/arm-linux-gnueabi-clang -### %s 2>&1 | FileCheck -check-prefix=TARGET %s
58 // TARGET: Target: arm-unknown-linux-gnueabi