xref: /llvm-project/clang/test/Driver/relax.c (revision f861e33912732d3de05369cdff852968fcdcb3a0)
1 // RUN: %clang -### --target=x86_64 -c -Wa,--mrelax-relocations=no %s 2>&1 | FileCheck  %s
2 
3 // CHECK: "-cc1"
4 // CHECK: "-mrelax-relocations=no"
5 
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='
8 
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,'
11 
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'
14