| 1 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \ |
| 2 |
// RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-11.2.0 \ |
| 3 |
// RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | FileCheck %s |
| 4 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s \ |
| 5 |
// RUN: --gcc-toolchain=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \ |
| 6 |
// RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \ |
| 7 |
// RUN: -mabi=ieeelongdouble -stdlib=libstdc++ 2>&1 | \ |
| 8 |
// RUN: FileCheck %s --check-prefix=NOWARN |
| 9 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ |
| 10 |
// RUN: -stdlib=libc++ 2>&1 | \ |
| 11 |
// RUN: FileCheck %s --check-prefix=NOWARN |
| 12 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ |
| 13 |
// RUN: -mabi=ibmlongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \ |
| 14 |
// RUN: FileCheck %s --check-prefix=NOWARN |
| 15 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ |
| 16 |
// RUN: -mabi=ieeelongdouble -stdlib=libc++ -Wno-unsupported-abi 2>&1 | \ |
| 17 |
// RUN: FileCheck %s --check-prefix=NOWARN |
| 18 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ |
| 19 |
// RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \ |
| 20 |
// RUN: -mabi=%if ppc_linux_default_ieeelongdouble %{ieeelongdouble%} \ |
| 21 |
// RUN: %else %{ibmlongdouble%} -stdlib=libc++ 2>&1 | \ |
| 22 |
// RUN: FileCheck %s --check-prefix=NOWARN |
| 23 |
// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\ |
| 24 |
// RUN: --dyld-prefix=%S/Inputs/powerpc64le-linux-gnu-tree/gcc-12 \ |
| 25 |
// RUN: -mabi=%if ppc_linux_default_ieeelongdouble %{ibmlongdouble%} \ |
| 26 |
// RUN: %else %{ieeelongdouble%} -stdlib=libc++ 2>&1 | FileCheck %s |
| 27 |
|
| 28 |
// CHECK: warning: float ABI '{{.*}}' is not supported by current library |
| 29 |
// NOWARN-NOT: warning: float ABI '{{.*}}' is not supported by current library |
| 30 |
long double foo(long double x) { return x; } |