1 // Test that the C++ headers are found on Solaris with gcc toolchain detection
4 // RUN: %clang -### %s -fsyntax-only 2>&1 \
5 // RUN: --target=sparc-sun-solaris2.11 --stdlib=platform \
6 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \
7 // RUN: | FileCheck --check-prefix=CHECK_SOLARIS_SPARC %s
8 // CHECK_SOLARIS_SPARC: "-cc1"
9 // CHECK_SOLARIS_SPARC-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
10 // CHECK_SOLARIS_SPARC-SAME: "-internal-isystem" "[[SYSROOT]]/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/../../../../include/c++/4.8.2"
11 // CHECK_SOLARIS_SPARC-SAME: "-internal-isystem" "[[SYSROOT]]/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/../../../../include/c++/4.8.2/sparc-sun-solaris2.11"
14 // RUN: %clang -m64 -### %s -fsyntax-only 2>&1 \
15 // RUN: --target=sparc-sun-solaris2.11 --stdlib=platform \
16 // RUN: --sysroot=%S/Inputs/solaris_sparc_tree \
17 // RUN: | FileCheck --check-prefix=CHECK_SOLARIS_SPARC64 %s
18 // CHECK_SOLARIS_SPARC64: "-cc1"
19 // CHECK_SOLARIS_SPARC64-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
20 // CHECK_SOLARIS_SPARC64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/../../../../include/c++/4.8.2"
21 // CHECK_SOLARIS_SPARC64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/gcc/4.8/lib/gcc/sparc-sun-solaris2.11/4.8.2/../../../../include/c++/4.8.2/sparc-sun-solaris2.11/sparcv9"
24 // RUN: %clang -### %s -fsyntax-only 2>&1 \
25 // RUN: --target=i386-pc-solaris2.11 --stdlib=platform \
26 // RUN: --sysroot=%S/Inputs/solaris_x86_tree \
27 // RUN: | FileCheck --check-prefix=CHECK_SOLARIS_X86 %s
28 // CHECK_SOLARIS_X86: "-cc1"
29 // CHECK_SOLARIS_X86-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
30 // CHECK_SOLARIS_X86-SAME: "-internal-isystem" "{{.*}}/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../../include/c++/4.9.4"
31 // CHECK_SOLARIS_X86-SAME: "-internal-isystem" "{{.*}}/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../../include/c++/4.9.4/i386-pc-solaris2.11"
34 // RUN: %clang -m64 -### %s -fsyntax-only 2>&1 \
35 // RUN: --target=i386-pc-solaris2.11 --stdlib=platform \
36 // RUN: --sysroot=%S/Inputs/solaris_x86_tree \
37 // RUN: | FileCheck --check-prefix=CHECK_SOLARIS_X64 %s
38 // CHECK_SOLARIS_X64: "-cc1"
39 // CHECK_SOLARIS_X64-SAME: "-isysroot" "[[SYSROOT:[^"]+]]"
40 // CHECK_SOLARIS_X64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../../include/c++/4.9.4"
41 // CHECK_SOLARIS_X64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/gcc/4.9/lib/gcc/i386-pc-solaris2.11/4.9.4/../../../../include/c++/4.9.4/i386-pc-solaris2.11/amd64"