xref: /llvm-project/clang/test/Driver/aix-link-options-on-non-aix.c (revision f39c399d9d15efe8309d8aa3d0ecf62205e6c474)
1 /// AIX-specific link options are rejected for other targets.
2 // RUN: not %clang -### --target=powerpc64-unknown-linux-gnu \
3 // RUN:   --sysroot %S/Inputs/aix_ppc_tree --unwindlib=libunwind --rtlib=compiler-rt \
4 // RUN:   -b one -K -mxcoff-build-id=a %s 2>&1 | FileCheck %s --implicit-check-not=error:
5 // RUN: not %clang -### --target=powerpc64-unknown-linux-gnu -c \
6 // RUN:   --sysroot %S/Inputs/aix_ppc_tree --unwindlib=libunwind --rtlib=compiler-rt \
7 // RUN:   -b one -K -mxcoff-build-id=a %s 2>&1 | FileCheck %s --implicit-check-not=error:
8 // CHECK: error: unsupported option '-b' for target '{{.*}}'
9 // CHECK: error: unsupported option '-K' for target '{{.*}}'
10 // CHECK: error: unsupported option '-mxcoff-build-id=' for target '{{.*}}'
11