brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 5680210 Raw
31 lines · cpp
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 %s4// 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=NOWARN9// RUN: %clang -### --driver-mode=g++ -target powerpc64le-linux-gnu %s\10// RUN:  -stdlib=libc++ 2>&1 | \11// RUN:  FileCheck %s --check-prefix=NOWARN12// 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=NOWARN15// 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=NOWARN18// 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=NOWARN23// 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 %s27 28// CHECK: warning: float ABI '{{.*}}' is not supported by current library29// NOWARN-NOT: warning: float ABI '{{.*}}' is not supported by current library30long double foo(long double x) { return x; }31