[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / ppc-float-abi-warning.cpp
blob3ccb9415a021d5ae141d12cf2ea345f3f58b263d
1 // REQUIRES: powerpc-registered-target
2 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \
3 // RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0 \
4 // RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | FileCheck %s
5 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \
6 // RUN: -mabi=ieeelongdouble -stdlib=libc++ 2>&1 | FileCheck %s
7 // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
8 // RUN: -mabi=ieeelongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \
9 // RUN: FileCheck %s --check-prefix=NOWARN
11 // CHECK: warning: float ABI 'ieeelongdouble' is not supported by current library
12 // NOWARN-NOT: warning: float ABI 'ieeelongdouble' is not supported by current library
13 long double foo(long double x) { return x; }