[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Driver / relax.c
blob93249cac7f40f884dd2a24c5fec685c35aee4798
1 // RUN: %clang -### --target=x86_64 -c -Wa,--mrelax-relocations=no %s 2>&1 | FileCheck %s
3 // CHECK: "-cc1"
4 // CHECK: "-mrelax-relocations=no"
6 // RUN: not %clang -### --target=x86_64 -c -Wa,-mrelax-relocations=x %s 2>&1 | FileCheck %s --check-prefix=ERR
7 // ERR: error: unsupported argument 'x' to option '-Wa,-mrelax-relocations='
9 // RUN: not %clang -### --target=aarch64 -c -Wa,-mrelax-relocations=no %s 2>&1 | FileCheck %s --check-prefix=ERR2
10 // ERR2: error: unsupported argument '-mrelax-relocations=no' to option '-Wa,'
12 // RUN: not %clang -### --target=x86_64-apple-darwin -c -Wa,-mrelax-relocations=no %s 2>&1 | FileCheck %s --check-prefix=ERR3
13 // ERR3: error: unsupported option '-Wa,-mrelax-relocations=' for target 'x86_64-apple-darwin'