1 // On Windows, -stdlib=libc++ is currently ignored, so -lc++experimental is not added.
2 // Once -stdlib=libc++ works on Windows, this XFAIL can be removed.
3 // XFAIL: windows
4 
5 // RUN: %clangxx -fexperimental-library -stdlib=libc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBCXX %s
6 // RUN: %clangxx -fexperimental-library -stdlib=libstdc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBSTDCXX %s
7 // RUN: %clangxx -fexperimental-library -stdlib=libc++ -nostdlib++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-NOSTDLIB %s
8 
9 // -fexperimental-library must be passed to CC1.
10 // CHECK: -fexperimental-library
11 
12 // Depending on the stdlib in use, we should (or not) pass -lc++experimental.
13 // CHECK-LIBCXX: -lc++experimental
14 // CHECK-LIBSTDCXX-NOT: -lc++experimental
15 // CHECK-NOSTDLIB-NOT: -lc++experimental
16