[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / experimental-library-flag.cpp
blob529888b867c16b62519c6ca0daf8620afb0e17fd
1 // On some platforms, -stdlib=libc++ is currently ignored, so -lc++experimental is not added.
2 // Once -stdlib=libc++ works on those, this XFAIL can be removed.
3 // XFAIL: windows, x86_64-scei-ps4, x86_64-sie-ps5
5 // For some reason, this fails with a core dump on AIX. This needs to be investigated.
6 // UNSUPPORTED: aix
8 // RUN: %clangxx -fexperimental-library -stdlib=libc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBCXX %s
9 // RUN: %clangxx -fexperimental-library -stdlib=libstdc++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIBSTDCXX %s
10 // RUN: %clangxx -fexperimental-library -stdlib=libc++ -nostdlib++ -### %s 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-NOSTDLIB %s
12 // -fexperimental-library must be passed to CC1.
13 // CHECK: -fexperimental-library
15 // Depending on the stdlib in use, we should (or not) pass -lc++experimental.
16 // CHECK-LIBCXX: -lc++experimental
17 // CHECK-LIBSTDCXX-NOT: -lc++experimental
18 // CHECK-NOSTDLIB-NOT: -lc++experimental