1 // REQUIRES: shell, arm-registered-target 2 3 4 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++" 26 27 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" 41 42 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" 48 49 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" 54 55 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--linux-gnueabi 59