brintos

brintos / llvm-project-archived public Read only

0
0
Text · 749 B · 93249ca Raw
14 lines · c
1// RUN: %clang -### --target=x86_64 -c -Wa,--mrelax-relocations=no %s 2>&1 | FileCheck  %s2 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=ERR7// 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=ERR210// 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=ERR313// ERR3: error: unsupported option '-Wa,-mrelax-relocations=' for target 'x86_64-apple-darwin'14