1 // Test that the C++ headers are found on Solaris with gcc toolchain detection 2 // 3 // Sparc, 32bit 4 // RUN: %clang -no-canonical-prefixes %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: "{{[^"]*}}clang{{[^"]*}}" "-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" 12 13 // Sparc, 64bit 14 // RUN: %clang -no-canonical-prefixes -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: "{{[^"]*}}clang{{[^"]*}}" "-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" 22 23 // Intel, 32bit 24 // RUN: %clang -no-canonical-prefixes %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: "{{[^"]*}}clang{{[^"]*}}" "-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" 32 33 // Intel, 64bit 34 // RUN: %clang -no-canonical-prefixes -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: "{{[^"]*}}clang{{[^"]*}}" "-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" 42