[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / aix-link-options-on-non-aix.c
blob9273f7989ecd4c92946cc06667a6b42ed059a0ea
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 '{{.*}}'