1 // General tests that the header search paths detected by the driver and passed 2 // to CC1 are sane. 3 // 4 // Test a simulated installation of libc++ on Linux, both through sysroot and 5 // the installation path of Clang. 6 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 7 // RUN: -target x86_64-unknown-linux-gnu \ 8 // RUN: -stdlib=libc++ \ 9 // RUN: -ccc-install-dir %S/Inputs/basic_linux_tree/usr/bin \ 10 // RUN: -resource-dir=%S/Inputs/resource_dir \ 11 // RUN: --sysroot=%S/Inputs/basic_linux_libcxx_tree \ 12 // RUN: --gcc-toolchain="" \ 13 // RUN: | FileCheck --check-prefix=CHECK-BASIC-LIBCXX-SYSROOT %s 14 // CHECK-BASIC-LIBCXX-SYSROOT: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 15 // CHECK-BASIC-LIBCXX-SYSROOT: "-isysroot" "[[SYSROOT:[^"]+]]" 16 // CHECK-BASIC-LIBCXX-SYSROOT: "-internal-isystem" "[[SYSROOT]]/usr/include/c++/v1" 17 // CHECK-BASIC-LIBCXX-SYSROOT: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 18 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 19 // RUN: -target x86_64-unknown-linux-gnu \ 20 // RUN: -stdlib=libc++ \ 21 // RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxx_tree/usr/bin \ 22 // RUN: -resource-dir=%S/Inputs/resource_dir \ 23 // RUN: --sysroot=%S/Inputs/basic_linux_libcxx_tree \ 24 // RUN: --gcc-toolchain="" \ 25 // RUN: | FileCheck --check-prefix=CHECK-BASIC-LIBCXX-INSTALL %s 26 // CHECK-BASIC-LIBCXX-INSTALL: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 27 // CHECK-BASIC-LIBCXX-INSTALL: "-isysroot" "[[SYSROOT:[^"]+]]" 28 // CHECK-BASIC-LIBCXX-INSTALL: "-internal-isystem" "[[SYSROOT]]/usr/bin/../include/c++/v1" 29 // CHECK-BASIC-LIBCXX-INSTALL: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 30 // 31 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 32 // RUN: -target x86_64-unknown-linux-gnu \ 33 // RUN: -stdlib=libc++ \ 34 // RUN: -ccc-install-dir %S/Inputs/basic_linux_tree/usr/bin \ 35 // RUN: -resource-dir=%S/Inputs/resource_dir \ 36 // RUN: --sysroot=%S/Inputs/basic_linux_libcxxv2_tree \ 37 // RUN: --gcc-toolchain="" \ 38 // RUN: | FileCheck --check-prefix=CHECK-BASIC-LIBCXXV2-SYSROOT %s 39 // CHECK-BASIC-LIBCXXV2-SYSROOT: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 40 // CHECK-BASIC-LIBCXXV2-SYSROOT: "-isysroot" "[[SYSROOT:[^"]+]]" 41 // CHECK-BASIC-LIBCXXV2-SYSROOT: "-internal-isystem" "[[SYSROOT]]/usr/include/c++/v2" 42 // CHECK-BASIC-LIBCXXV2-SYSROOT: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 43 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 44 // RUN: -target x86_64-unknown-linux-gnu \ 45 // RUN: -stdlib=libc++ \ 46 // RUN: -ccc-install-dir %S/Inputs/basic_linux_libcxxv2_tree/usr/bin \ 47 // RUN: -resource-dir=%S/Inputs/resource_dir \ 48 // RUN: --sysroot=%S/Inputs/basic_linux_libcxxv2_tree \ 49 // RUN: --gcc-toolchain="" \ 50 // RUN: | FileCheck --check-prefix=CHECK-BASIC-LIBCXXV2-INSTALL %s 51 // CHECK-BASIC-LIBCXXV2-INSTALL: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 52 // CHECK-BASIC-LIBCXXV2-INSTALL: "-isysroot" "[[SYSROOT:[^"]+]]" 53 // CHECK-BASIC-LIBCXXV2-INSTALL: "-internal-isystem" "[[SYSROOT]]/usr/bin/../include/c++/v2" 54 // CHECK-BASIC-LIBCXXV2-INSTALL: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 55 // 56 // Test Linux with both libc++ and libstdc++ installed. 57 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 58 // RUN: -target x86_64-unknown-linux-gnu \ 59 // RUN: -stdlib=libc++ \ 60 // RUN: -ccc-install-dir %S/Inputs/basic_linux_tree/usr/bin \ 61 // RUN: -resource-dir=%S/Inputs/resource_dir \ 62 // RUN: --sysroot=%S/Inputs/basic_linux_libstdcxx_libcxxv2_tree \ 63 // RUN: --gcc-toolchain="" \ 64 // RUN: | FileCheck --check-prefix=CHECK-BASIC-LIBSTDCXX-LIBCXXV2-SYSROOT %s 65 // CHECK-BASIC-LIBSTDCXX-LIBCXXV2-SYSROOT: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 66 // CHECK-BASIC-LIBSTDCXX-LIBCXXV2-SYSROOT: "-isysroot" "[[SYSROOT:[^"]+]]" 67 // CHECK-BASIC-LIBSTDCXX-LIBCXXV2-SYSROOT: "-internal-isystem" "[[SYSROOT]]/usr/include/c++/v2" 68 // CHECK-BASIC-LIBSTDCXX-LIBCXXV2-SYSROOT: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 69 // 70 // Test a very broken version of multiarch that shipped in Ubuntu 11.04. 71 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 72 // RUN: -target i386-unknown-linux -stdlib=libstdc++ \ 73 // RUN: --sysroot=%S/Inputs/ubuntu_11.04_multiarch_tree \ 74 // RUN: --gcc-toolchain="" \ 75 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-11-04 %s 76 // CHECK-UBUNTU-11-04: "{{.*}}clang{{.*}}" "-cc1" 77 // CHECK-UBUNTU-11-04: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 78 // CHECK-UBUNTU-11-04: "-isysroot" "[[SYSROOT:[^"]+]]" 79 // CHECK-UBUNTU-11-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5" 80 // CHECK-UBUNTU-11-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/i686-linux-gnu" 81 // CHECK-UBUNTU-11-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/backward" 82 // CHECK-UBUNTU-11-04: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 83 // CHECK-UBUNTU-11-04: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 84 // CHECK-UBUNTU-11-04: "-internal-externc-isystem" "[[SYSROOT]]/include" 85 // CHECK-UBUNTU-11-04: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 86 // 87 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 88 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 89 // RUN: --sysroot=%S/Inputs/ubuntu_13.04_multiarch_tree \ 90 // RUN: --gcc-toolchain="" \ 91 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-13-04 %s 92 // CHECK-UBUNTU-13-04: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 93 // CHECK-UBUNTU-13-04: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 94 // CHECK-UBUNTU-13-04: "-isysroot" "[[SYSROOT:[^"]+]]" 95 // CHECK-UBUNTU-13-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7" 96 // CHECK-UBUNTU-13-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7" 97 // CHECK-UBUNTU-13-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward" 98 // CHECK-UBUNTU-13-04: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 99 // CHECK-UBUNTU-13-04: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 100 // CHECK-UBUNTU-13-04: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/x86_64-linux-gnu" 101 // CHECK-UBUNTU-13-04: "-internal-externc-isystem" "[[SYSROOT]]/include" 102 // CHECK-UBUNTU-13-04: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 103 // 104 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 105 // RUN: -target x86_64-unknown-linux-gnux32 -stdlib=libstdc++ \ 106 // RUN: --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree \ 107 // RUN: --gcc-toolchain="" \ 108 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-14-04 %s 109 // CHECK-UBUNTU-14-04: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 110 // CHECK-UBUNTU-14-04: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 111 // CHECK-UBUNTU-14-04: "-isysroot" "[[SYSROOT:[^"]+]]" 112 // CHECK-UBUNTU-14-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8" 113 // CHECK-UBUNTU-14-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8/x32" 114 // CHECK-UBUNTU-14-04: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward" 115 // CHECK-UBUNTU-14-04: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 116 // CHECK-UBUNTU-14-04: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 117 // CHECK-UBUNTU-14-04: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/x86_64-linux-gnu" 118 // CHECK-UBUNTU-14-04: "-internal-externc-isystem" "[[SYSROOT]]/include" 119 // CHECK-UBUNTU-14-04: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 120 /// 121 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 122 // RUN: -target arm-linux-gnueabihf -stdlib=libstdc++ \ 123 // RUN: --sysroot=%S/Inputs/ubuntu_13.04_multiarch_tree \ 124 // RUN: --gcc-toolchain="" \ 125 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-13-04-CROSS %s 126 // CHECK-UBUNTU-13-04-CROSS: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 127 // CHECK-UBUNTU-13-04-CROSS: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 128 // CHECK-UBUNTU-13-04-CROSS: "-isysroot" "[[SYSROOT:[^"]+]]" 129 // CHECK-UBUNTU-13-04-CROSS: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc-cross/arm-linux-gnueabihf/4.7/../../../../include/c++/4.7" 130 // CHECK-UBUNTU-13-04-CROSS: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc-cross/arm-linux-gnueabihf/4.7/../../../../include/arm-linux-gnueabihf/c++/4.7" 131 // CHECK-UBUNTU-13-04-CROSS: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc-cross/arm-linux-gnueabihf/4.7/../../../../include/c++/4.7/backward" 132 // CHECK-UBUNTU-13-04-CROSS: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 133 // CHECK-UBUNTU-13-04-CROSS: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 134 // CHECK-UBUNTU-13-04-CROSS: "-internal-externc-isystem" "[[SYSROOT]]/include" 135 // CHECK-UBUNTU-13-04-CROSS: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 136 // 137 // Test Ubuntu/Debian's new version of multiarch, with -m32. 138 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 139 // RUN: -target x86_64-unknown-linux-gnu -m32 -stdlib=libstdc++ \ 140 // RUN: --sysroot=%S/Inputs/ubuntu_13.04_multiarch_tree \ 141 // RUN: --gcc-toolchain="" \ 142 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-13-04-M32 %s 143 // CHECK-UBUNTU-13-04-M32: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 144 // CHECK-UBUNTU-13-04-M32: "-triple" "i386-unknown-linux-gnu" 145 // CHECK-UBUNTU-13-04-M32: "-isysroot" "[[SYSROOT:[^"]+]]" 146 // CHECK-UBUNTU-13-04-M32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7" 147 // CHECK-UBUNTU-13-04-M32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/x86_64-linux-gnu/c++/4.7/32" 148 // CHECK-UBUNTU-13-04-M32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.7/../../../../include/c++/4.7/backward" 149 // 150 // Test Ubuntu/Debian's Ubuntu 14.04 config variant, with -m32 151 // and an empty 4.9 directory. 152 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 153 // RUN: -target x86_64-unknown-linux-gnu -m32 -stdlib=libstdc++ \ 154 // RUN: --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree \ 155 // RUN: --gcc-toolchain="" \ 156 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-14-04-M32 %s 157 // CHECK-UBUNTU-14-04-M32: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 158 // CHECK-UBUNTU-14-04-M32: "-triple" "i386-unknown-linux-gnu" 159 // CHECK-UBUNTU-14-04-M32: "-isysroot" "[[SYSROOT:[^"]+]]" 160 // CHECK-UBUNTU-14-04-M32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8" 161 // CHECK-UBUNTU-14-04-M32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/x86_64-linux-gnu/c++/4.8/32" 162 // CHECK-UBUNTU-14-04-M32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../include/c++/4.8/backward" 163 // 164 // Test Ubuntu/Debian's Ubuntu 14.04 with -m32 and an i686 cross compiler 165 // installed rather than relying on multilib. Also happens to look like an 166 // actual i686 Ubuntu system. 167 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 168 // RUN: -target x86_64-unknown-linux-gnu -m32 -stdlib=libstdc++ \ 169 // RUN: --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree2 \ 170 // RUN: --gcc-toolchain="" \ 171 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-14-04-I686 %s 172 // CHECK-UBUNTU-14-04-I686: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 173 // CHECK-UBUNTU-14-04-I686: "-triple" "i386-unknown-linux-gnu" 174 // CHECK-UBUNTU-14-04-I686: "-isysroot" "[[SYSROOT:[^"]+]]" 175 // CHECK-UBUNTU-14-04-I686: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8" 176 // CHECK-UBUNTU-14-04-I686: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/i386-linux-gnu/c++/4.8" 177 // CHECK-UBUNTU-14-04-I686: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/i686-linux-gnu/4.8/../../../../include/c++/4.8/backward" 178 // 179 // Test Ubuntu/Debian's Ubuntu 14.04 for powerpc64le 180 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 181 // RUN: -target powerpc64le-unknown-linux-gnu -m32 -stdlib=libstdc++ \ 182 // RUN: --sysroot=%S/Inputs/ubuntu_14.04_multiarch_tree \ 183 // RUN: --gcc-toolchain="" \ 184 // RUN: | FileCheck --check-prefix=CHECK-UBUNTU-14-04-PPC64LE %s 185 // CHECK-UBUNTU-14-04-PPC64LE: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 186 // CHECK-UBUNTU-14-04-PPC64LE: "-triple" "powerpc64le-unknown-linux-gnu" 187 // CHECK-UBUNTU-14-04-PPC64LE: "-isysroot" "[[SYSROOT:[^"]+]]" 188 // CHECK-UBUNTU-14-04-PPC64LE: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc64le-linux-gnu/4.8/../../../../include/c++/4.8" 189 // CHECK-UBUNTU-14-04-PPC64LE: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc64le-linux-gnu/4.8/../../../../include/powerpc64le-linux-gnu/c++/4.8" 190 // CHECK-UBUNTU-14-04-PPC64LE: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc64le-linux-gnu/4.8/../../../../include/c++/4.8/backward" 191 // CHECK-UBUNTU-14-04-PPC64LE: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/powerpc64le-linux-gnu" 192 // CHECK-UBUNTU-14-04-PPC64LE: "-internal-externc-isystem" "[[SYSROOT]]/include" 193 // CHECK-UBUNTU-14-04-PPC64LE: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 194 // 195 // Thoroughly exercise the Debian multiarch environment. 196 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 197 // RUN: -target i686-linux-gnu -stdlib=libstdc++ \ 198 // RUN: --sysroot=%S/Inputs/debian_multiarch_tree \ 199 // RUN: --gcc-toolchain="" \ 200 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-X86 %s 201 // CHECK-DEBIAN-X86: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 202 // CHECK-DEBIAN-X86: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 203 // CHECK-DEBIAN-X86: "-isysroot" "[[SYSROOT:[^"]+]]" 204 // CHECK-DEBIAN-X86: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/i686-linux-gnu/4.5/../../../../include/c++/4.5" 205 // CHECK-DEBIAN-X86: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/i686-linux-gnu/4.5/../../../../include/c++/4.5/i686-linux-gnu" 206 // CHECK-DEBIAN-X86: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/i686-linux-gnu/4.5/../../../../include/c++/4.5/backward" 207 // CHECK-DEBIAN-X86: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 208 // CHECK-DEBIAN-X86: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 209 // CHECK-DEBIAN-X86: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/i386-linux-gnu" 210 // CHECK-DEBIAN-X86: "-internal-externc-isystem" "[[SYSROOT]]/include" 211 // CHECK-DEBIAN-X86: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 212 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 213 // RUN: -target x86_64-linux-gnu -stdlib=libstdc++ \ 214 // RUN: --sysroot=%S/Inputs/debian_multiarch_tree \ 215 // RUN: --gcc-toolchain="" \ 216 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-X86-64 %s 217 // CHECK-DEBIAN-X86-64: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 218 // CHECK-DEBIAN-X86-64: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 219 // CHECK-DEBIAN-X86-64: "-isysroot" "[[SYSROOT:[^"]+]]" 220 // CHECK-DEBIAN-X86-64: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.5/../../../../include/c++/4.5" 221 // CHECK-DEBIAN-X86-64: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.5/../../../../include/c++/4.5/x86_64-linux-gnu" 222 // CHECK-DEBIAN-X86-64: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-linux-gnu/4.5/../../../../include/c++/4.5/backward" 223 // CHECK-DEBIAN-X86-64: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 224 // CHECK-DEBIAN-X86-64: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 225 // CHECK-DEBIAN-X86-64: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/x86_64-linux-gnu" 226 // CHECK-DEBIAN-X86-64: "-internal-externc-isystem" "[[SYSROOT]]/include" 227 // CHECK-DEBIAN-X86-64: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 228 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 229 // RUN: -target powerpc-linux-gnu -stdlib=libstdc++ \ 230 // RUN: --sysroot=%S/Inputs/debian_multiarch_tree \ 231 // RUN: --gcc-toolchain="" \ 232 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-PPC %s 233 // CHECK-DEBIAN-PPC: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 234 // CHECK-DEBIAN-PPC: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 235 // CHECK-DEBIAN-PPC: "-isysroot" "[[SYSROOT:[^"]+]]" 236 // CHECK-DEBIAN-PPC: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc-linux-gnu/4.5/../../../../include/c++/4.5" 237 // CHECK-DEBIAN-PPC: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc-linux-gnu/4.5/../../../../include/c++/4.5/powerpc-linux-gnu" 238 // CHECK-DEBIAN-PPC: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc-linux-gnu/4.5/../../../../include/c++/4.5/backward" 239 // CHECK-DEBIAN-PPC: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 240 // CHECK-DEBIAN-PPC: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 241 // CHECK-DEBIAN-PPC: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/powerpc-linux-gnu" 242 // CHECK-DEBIAN-PPC: "-internal-externc-isystem" "[[SYSROOT]]/include" 243 // CHECK-DEBIAN-PPC: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 244 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 245 // RUN: -target powerpc64-linux-gnu -stdlib=libstdc++ \ 246 // RUN: --sysroot=%S/Inputs/debian_multiarch_tree \ 247 // RUN: --gcc-toolchain="" \ 248 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-PPC64 %s 249 // CHECK-DEBIAN-PPC64: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 250 // CHECK-DEBIAN-PPC64: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 251 // CHECK-DEBIAN-PPC64: "-isysroot" "[[SYSROOT:[^"]+]]" 252 // CHECK-DEBIAN-PPC64: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc64-linux-gnu/4.5/../../../../include/c++/4.5" 253 // CHECK-DEBIAN-PPC64: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc64-linux-gnu/4.5/../../../../include/c++/4.5/powerpc64-linux-gnu" 254 // CHECK-DEBIAN-PPC64: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/powerpc64-linux-gnu/4.5/../../../../include/c++/4.5/backward" 255 // CHECK-DEBIAN-PPC64: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 256 // CHECK-DEBIAN-PPC64: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 257 // CHECK-DEBIAN-PPC64: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/powerpc64-linux-gnu" 258 // CHECK-DEBIAN-PPC64: "-internal-externc-isystem" "[[SYSROOT]]/include" 259 // CHECK-DEBIAN-PPC64: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 260 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 261 // RUN: -target sparc-linux-gnu -stdlib=libstdc++ \ 262 // RUN: --sysroot=%S/Inputs/debian_multiarch_tree \ 263 // RUN: --gcc-toolchain="" \ 264 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC %s 265 // CHECK-DEBIAN-SPARC: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 266 // CHECK-DEBIAN-SPARC-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 267 // CHECK-DEBIAN-SPARC-SAME: "-isysroot" "[[SYSROOT:[^"]+]]" 268 // CHECK-DEBIAN-SPARC-SAME: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.5/../../../../include/c++/4.5" 269 // CHECK-DEBIAN-SPARC-SAME: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.5/../../../../include/c++/4.5/sparc-linux-gnu" 270 // CHECK-DEBIAN-SPARC-SAME: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/sparc-linux-gnu/4.5/../../../../include/c++/4.5/backward" 271 // CHECK-DEBIAN-SPARC-SAME: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 272 // CHECK-DEBIAN-SPARC-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 273 // CHECK-DEBIAN-SPARC-SAME: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/sparc-linux-gnu" 274 // CHECK-DEBIAN-SPARC-SAME: "-internal-externc-isystem" "[[SYSROOT]]/include" 275 // CHECK-DEBIAN-SPARC-SAME: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 276 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 277 // RUN: -target sparc64-linux-gnu -stdlib=libstdc++ \ 278 // RUN: --sysroot=%S/Inputs/debian_multiarch_tree \ 279 // RUN: --gcc-toolchain="" \ 280 // RUN: | FileCheck --check-prefix=CHECK-DEBIAN-SPARC64 %s 281 // CHECK-DEBIAN-SPARC64: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 282 // CHECK-DEBIAN-SPARC64-SAME: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 283 // CHECK-DEBIAN-SPARC64-SAME: "-isysroot" "[[SYSROOT:[^"]+]]" 284 // CHECK-DEBIAN-SPARC64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.5/../../../../include/c++/4.5" 285 // CHECK-DEBIAN-SPARC64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.5/../../../../include/c++/4.5/sparc64-linux-gnu" 286 // CHECK-DEBIAN-SPARC64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/sparc64-linux-gnu/4.5/../../../../include/c++/4.5/backward" 287 // CHECK-DEBIAN-SPARC64-SAME: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 288 // CHECK-DEBIAN-SPARC64-SAME: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 289 // CHECK-DEBIAN-SPARC64-SAME: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/sparc64-linux-gnu" 290 // CHECK-DEBIAN-SPARC64-SAME: "-internal-externc-isystem" "[[SYSROOT]]/include" 291 // CHECK-DEBIAN-SPARC64-SAME: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 292 // 293 // Test Gentoo's weirdness both before and after they changed it in their GCC 294 // 4.6.4 release. 295 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 296 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 297 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_4.6.2_tree \ 298 // RUN: --gcc-toolchain="" \ 299 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-6-2 %s 300 // CHECK-GENTOO-4-6-2: "{{.*}}clang{{.*}}" "-cc1" 301 // CHECK-GENTOO-4-6-2: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 302 // CHECK-GENTOO-4-6-2: "-isysroot" "[[SYSROOT:[^"]+]]" 303 // CHECK-GENTOO-4-6-2: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4" 304 // CHECK-GENTOO-4-6-2: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/x86_64-pc-linux-gnu" 305 // CHECK-GENTOO-4-6-2: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/include/g++-v4/backward" 306 // CHECK-GENTOO-4-6-2: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 307 // CHECK-GENTOO-4-6-2: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 308 // CHECK-GENTOO-4-6-2: "-internal-externc-isystem" "[[SYSROOT]]/include" 309 // CHECK-GENTOO-4-6-2: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 310 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 311 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 312 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_4.6.4_tree \ 313 // RUN: --gcc-toolchain="" \ 314 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-6-4 %s 315 // CHECK-GENTOO-4-6-4: "{{.*}}clang{{.*}}" "-cc1" 316 // CHECK-GENTOO-4-6-4: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 317 // CHECK-GENTOO-4-6-4: "-isysroot" "[[SYSROOT:[^"]+]]" 318 // CHECK-GENTOO-4-6-4: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/include/g++-v4.6" 319 // CHECK-GENTOO-4-6-4: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/include/g++-v4.6/x86_64-pc-linux-gnu" 320 // CHECK-GENTOO-4-6-4: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.4/include/g++-v4.6/backward" 321 // CHECK-GENTOO-4-6-4: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 322 // CHECK-GENTOO-4-6-4: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 323 // CHECK-GENTOO-4-6-4: "-internal-externc-isystem" "[[SYSROOT]]/include" 324 // CHECK-GENTOO-4-6-4: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 325 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 326 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 327 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_4.9.3_tree \ 328 // RUN: --gcc-toolchain="" \ 329 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-3 %s 330 // CHECK-GENTOO-4-9-3: "{{.*}}clang{{.*}}" "-cc1" 331 // CHECK-GENTOO-4-9-3: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 332 // CHECK-GENTOO-4-9-3: "-isysroot" "[[SYSROOT:[^"]+]]" 333 // CHECK-GENTOO-4-9-3: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3" 334 // CHECK-GENTOO-4-9-3: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/x86_64-pc-linux-gnu" 335 // CHECK-GENTOO-4-9-3: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/backward" 336 // CHECK-GENTOO-4-9-3: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 337 // CHECK-GENTOO-4-9-3: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 338 // CHECK-GENTOO-4-9-3: "-internal-externc-isystem" "[[SYSROOT]]/include" 339 // CHECK-GENTOO-4-9-3: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 340 // 341 // Test support for Gentoo's gcc-config -- clang should prefer the older 342 // (4.9.3) version over the newer (5.4.0) due to preference specified 343 // in /etc/env.d/gcc/x86_64-pc-linux-gnu. 344 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 345 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 346 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_multi_version_tree \ 347 // RUN: --gcc-toolchain="" \ 348 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-3 %s 349 // 350 // Test that gcc-config support does not break multilib. 351 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 352 // RUN: -target x86_64-unknown-linux-gnux32 -stdlib=libstdc++ \ 353 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_multi_version_tree \ 354 // RUN: --gcc-toolchain="" \ 355 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-3-X32 %s 356 // CHECK-GENTOO-4-9-3-X32: "{{.*}}clang{{.*}}" "-cc1" 357 // CHECK-GENTOO-4-9-3-X32: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 358 // CHECK-GENTOO-4-9-3-X32: "-isysroot" "[[SYSROOT:[^"]+]]" 359 // CHECK-GENTOO-4-9-3-X32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3" 360 // CHECK-GENTOO-4-9-3-X32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/x86_64-pc-linux-gnu/x32" 361 // CHECK-GENTOO-4-9-3-X32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/backward" 362 // CHECK-GENTOO-4-9-3-X32: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 363 // CHECK-GENTOO-4-9-3-X32: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 364 // CHECK-GENTOO-4-9-3-X32: "-internal-externc-isystem" "[[SYSROOT]]/include" 365 // CHECK-GENTOO-4-9-3-X32: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 366 // 367 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 368 // RUN: -target i386-unknown-linux-gnu -stdlib=libstdc++ \ 369 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_multi_version_tree \ 370 // RUN: --gcc-toolchain="" \ 371 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-3-32 %s 372 // CHECK-GENTOO-4-9-3-32: "{{.*}}clang{{.*}}" "-cc1" 373 // CHECK-GENTOO-4-9-3-32: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 374 // CHECK-GENTOO-4-9-3-32: "-isysroot" "[[SYSROOT:[^"]+]]" 375 // CHECK-GENTOO-4-9-3-32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3" 376 // CHECK-GENTOO-4-9-3-32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/x86_64-pc-linux-gnu/32" 377 // CHECK-GENTOO-4-9-3-32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/include/g++-v4.9.3/backward" 378 // CHECK-GENTOO-4-9-3-32: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 379 // CHECK-GENTOO-4-9-3-32: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 380 // CHECK-GENTOO-4-9-3-32: "-internal-externc-isystem" "[[SYSROOT]]/include" 381 // CHECK-GENTOO-4-9-3-32: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 382 // 383 // Test support for parsing Gentoo's gcc-config -- clang should parse the 384 // /etc/env.d/gcc/config-x86_64-pc-linux-gnu file to find CURRENT gcc used. 385 // Then should pick the multilibs from version 4.9.x specified in 386 // /etc/env.d/gcc/x86_64-pc-linux-gnu-4.9.3. 387 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 388 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 389 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_4.9.x_tree \ 390 // RUN: --gcc-toolchain="" \ 391 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-X %s 392 // 393 // CHECK-GENTOO-4-9-X: "{{.*}}clang{{.*}}" "-cc1" 394 // CHECK-GENTOO-4-9-X: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 395 // CHECK-GENTOO-4-9-X: "-isysroot" "[[SYSROOT:[^"]+]]" 396 // CHECK-GENTOO-4-9-X: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3" 397 // CHECK-GENTOO-4-9-X: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3/x86_64-pc-linux-gnu" 398 // CHECK-GENTOO-4-9-X: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3/backward" 399 // CHECK-GENTOO-4-9-X: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 400 // CHECK-GENTOO-4-9-X: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 401 // CHECK-GENTOO-4-9-X: "-internal-externc-isystem" "[[SYSROOT]]/include" 402 // CHECK-GENTOO-4-9-X: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 403 // 404 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 405 // RUN: -target x86_64-unknown-linux-gnux32 -stdlib=libstdc++ \ 406 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_4.9.x_tree \ 407 // RUN: --gcc-toolchain="" \ 408 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-X-X32 %s 409 // CHECK-GENTOO-4-9-X-X32: "{{.*}}clang{{.*}}" "-cc1" 410 // CHECK-GENTOO-4-9-X-X32: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 411 // CHECK-GENTOO-4-9-X-X32: "-isysroot" "[[SYSROOT:[^"]+]]" 412 // CHECK-GENTOO-4-9-X-X32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3" 413 // CHECK-GENTOO-4-9-X-X32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3/x86_64-pc-linux-gnu/x32" 414 // CHECK-GENTOO-4-9-X-X32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3/backward" 415 // CHECK-GENTOO-4-9-X-X32: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 416 // CHECK-GENTOO-4-9-X-X32: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 417 // CHECK-GENTOO-4-9-X-X32: "-internal-externc-isystem" "[[SYSROOT]]/include" 418 // CHECK-GENTOO-4-9-X-X32: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 419 // 420 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 421 // RUN: -target i386-unknown-linux-gnu -stdlib=libstdc++ \ 422 // RUN: --sysroot=%S/Inputs/gentoo_linux_gcc_4.9.x_tree \ 423 // RUN: --gcc-toolchain="" \ 424 // RUN: | FileCheck --check-prefix=CHECK-GENTOO-4-9-X-32 %s 425 // CHECK-GENTOO-4-9-X-32: "{{.*}}clang{{.*}}" "-cc1" 426 // CHECK-GENTOO-4-9-X-32: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 427 // CHECK-GENTOO-4-9-X-32: "-isysroot" "[[SYSROOT:[^"]+]]" 428 // CHECK-GENTOO-4-9-X-32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3" 429 // CHECK-GENTOO-4-9-X-32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3/x86_64-pc-linux-gnu/32" 430 // CHECK-GENTOO-4-9-X-32: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.x/include/g++-v4.9.3/backward" 431 // CHECK-GENTOO-4-9-X-32: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 432 // CHECK-GENTOO-4-9-X-32: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 433 // CHECK-GENTOO-4-9-X-32: "-internal-externc-isystem" "[[SYSROOT]]/include" 434 // CHECK-GENTOO-4-9-X-32: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 435 // 436 // Check header search on Debian 6 / MIPS64 437 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 438 // RUN: -target mips64-unknown-linux-gnuabi64 -stdlib=libstdc++ \ 439 // RUN: --sysroot=%S/Inputs/debian_6_mips64_tree \ 440 // RUN: --gcc-toolchain="" \ 441 // RUN: | FileCheck --check-prefix=CHECK-MIPS64-GNUABI %s 442 // CHECK-MIPS64-GNUABI: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 443 // CHECK-MIPS64-GNUABI: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 444 // CHECK-MIPS64-GNUABI: "-isysroot" "[[SYSROOT:[^"]+]]" 445 // CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9" 446 // CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9/mips64-linux-gnuabi64" 447 // CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64-linux-gnuabi64/4.9/../../../../include/c++/4.9/backward" 448 // CHECK-MIPS64-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 449 // CHECK-MIPS64-GNUABI: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 450 // CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/mips64-linux-gnuabi64" 451 // CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/include" 452 // CHECK-MIPS64-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 453 // 454 // Check header search on Debian 6 / MIPS64 455 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 456 // RUN: -target mips64el-unknown-linux-gnuabi64 -stdlib=libstdc++ \ 457 // RUN: --sysroot=%S/Inputs/debian_6_mips64_tree \ 458 // RUN: --gcc-toolchain="" \ 459 // RUN: | FileCheck --check-prefix=CHECK-MIPS64EL-GNUABI %s 460 // CHECK-MIPS64EL-GNUABI: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 461 // CHECK-MIPS64EL-GNUABI: "-resource-dir" "[[RESOURCE_DIR:[^"]+]]" 462 // CHECK-MIPS64EL-GNUABI: "-isysroot" "[[SYSROOT:[^"]+]]" 463 // CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9" 464 // CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9/mips64el-linux-gnuabi64" 465 // CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/lib/gcc/mips64el-linux-gnuabi64/4.9/../../../../include/c++/4.9/backward" 466 // CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[SYSROOT]]/usr/local/include" 467 // CHECK-MIPS64EL-GNUABI: "-internal-isystem" "[[RESOURCE_DIR]]{{/|\\\\}}include" 468 // CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include/mips64el-linux-gnuabi64" 469 // CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/include" 470 // CHECK-MIPS64EL-GNUABI: "-internal-externc-isystem" "[[SYSROOT]]/usr/include" 471 472 473 // Check header search on OpenEmbedded ARM. 474 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 475 // RUN: -target arm-oe-linux-gnueabi -stdlib=libstdc++ \ 476 // RUN: --sysroot=%S/Inputs/openembedded_arm_linux_tree \ 477 // RUN: --gcc-toolchain="" \ 478 // RUN: | FileCheck --check-prefix=CHECK-OE-ARM %s 479 480 // CHECK-OE-ARM: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 481 // CHECK-OE-ARM: "-isysroot" "[[SYSROOT:[^"]+]]" 482 // CHECK-OE-ARM: "-internal-isystem" "[[SYSROOT]]/usr/lib/arm-oe-linux-gnueabi/6.3.0/../../../include/c++/6.3.0" 483 // CHECK-OE-ARM: "-internal-isystem" "[[SYSROOT]]/usr/lib/arm-oe-linux-gnueabi/6.3.0/../../../include/c++/6.3.0/backward" 484 485 // Check header search on OpenEmbedded AArch64. 486 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 487 // RUN: -target aarch64-oe-linux -stdlib=libstdc++ \ 488 // RUN: --sysroot=%S/Inputs/openembedded_aarch64_linux_tree \ 489 // RUN: --gcc-toolchain="" \ 490 // RUN: | FileCheck --check-prefix=CHECK-OE-AARCH64 %s 491 492 // CHECK-OE-AARCH64: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 493 // CHECK-OE-AARCH64: "-isysroot" "[[SYSROOT:[^"]+]]" 494 // CHECK-OE-AARCH64: "-internal-isystem" "[[SYSROOT]]/usr/lib64/aarch64-oe-linux/6.3.0/../../../include/c++/6.3.0" 495 // CHECK-OE-AARCH64: "-internal-isystem" "[[SYSROOT]]/usr/lib64/aarch64-oe-linux/6.3.0/../../../include/c++/6.3.0/backward" 496 497 // Check header search with Cray's gcc package. 498 // RUN: %clang -no-canonical-prefixes %s -### -fsyntax-only 2>&1 \ 499 // RUN: -target x86_64-unknown-linux-gnu -stdlib=libstdc++ \ 500 // RUN: --sysroot=%S/Inputs/cray_suse_gcc_tree \ 501 // RUN: --gcc-toolchain="%S/Inputs/cray_suse_gcc_tree/opt/gcc/8.2.0/snos" \ 502 // RUN: | FileCheck --check-prefix=CHECK-CRAY-X86 %s 503 504 // CHECK-CRAY-X86: "{{[^"]*}}clang{{[^"]*}}" "-cc1" 505 // CHECK-CRAY-X86: "-isysroot" "[[SYSROOT:[^"]+]]" 506 // CHECK-CRAY-X86: "-internal-isystem" "[[SYSROOT]]/opt/gcc/8.2.0/snos/lib/gcc/x86_64-suse-linux/8.2.0/../../../../include/g++" 507 // CHECK-CRAY-X86: "-internal-isystem" "[[SYSROOT]]/opt/gcc/8.2.0/snos/lib/gcc/x86_64-suse-linux/8.2.0/../../../../include/g++/backward" 508