1*c5590396SQiu Chaofan // REQUIRES: powerpc-registered-target
2*c5590396SQiu Chaofan // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \
3*c5590396SQiu Chaofan // RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0 \
4*c5590396SQiu Chaofan // RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | FileCheck %s
5*c5590396SQiu Chaofan // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \
6*c5590396SQiu Chaofan // RUN: -mabi=ieeelongdouble -stdlib=libc++ 2>&1 | FileCheck %s
7*c5590396SQiu Chaofan // RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\
8*c5590396SQiu Chaofan // RUN: -mabi=ieeelongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \
9*c5590396SQiu Chaofan // RUN: FileCheck %s --check-prefix=NOWARN
10*c5590396SQiu Chaofan
11*c5590396SQiu Chaofan // CHECK: warning: float ABI 'ieeelongdouble' is not supported by current library
12*c5590396SQiu Chaofan // NOWARN-NOT: warning: float ABI 'ieeelongdouble' is not supported by current library
foo(long double x)13*c5590396SQiu Chaofan long double foo(long double x) { return x; }
14