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