1*fdaaca8aSJonas Hahnfeld // This test will fail if CLANG_DEFAULT_CXX_STDLIB is set to anything different 2*fdaaca8aSJonas Hahnfeld // than the platform default. (see https://llvm.org/bugs/show_bug.cgi?id=30548) 3*fdaaca8aSJonas Hahnfeld // XFAIL: default-cxx-stdlib-set 4*fdaaca8aSJonas Hahnfeld 53a098c1bSTim Northover // RUN: %clang -target x86_64-apple-darwin -arch arm64 -miphoneos-version-min=7.0 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LIBCXX 63a098c1bSTim Northover // RUN: %clang -target x86_64-apple-darwin -mmacosx-version-min=10.8 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LIBSTDCXX 73a098c1bSTim Northover // RUN: %clang -target x86_64-apple-darwin -mmacosx-version-min=10.9 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LIBCXX 83a098c1bSTim Northover // RUN: %clang -target x86_64-apple-darwin -arch armv7s -miphoneos-version-min=6.1 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LIBSTDCXX 93a098c1bSTim Northover // RUN: %clang -target x86_64-apple-darwin -arch armv7s -miphoneos-version-min=7.0 %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LIBCXX 103a098c1bSTim Northover // RUN: %clang -target x86_64-apple-darwin -arch armv7k %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-LIBCXX 113a098c1bSTim Northover 123a098c1bSTim Northover // The purpose of this test is that the libc++ headers should be found 133a098c1bSTim Northover // properly. At the moment this is done by passing -stdlib=libc++ down to the 143a098c1bSTim Northover // cc1 invocation. If and when we change to finding them in the driver this test 153a098c1bSTim Northover // should reflect that. 163a098c1bSTim Northover 173a098c1bSTim Northover // CHECK-LIBCXX: -stdlib=libc++ 183a098c1bSTim Northover 193a098c1bSTim Northover // CHECK-LIBSTDCXX-NOT: -stdlib=libc++ 203a098c1bSTim Northover // CHECK-LIBSTDCXX-NOT: -stdlib=libstdc++ 21