xref: /llvm-project/clang/test/CodeGen/arm-soft-float-abi-filtering.c (revision 2c074bb39e25e69dc13b756beb9668ed3ffd1ae1)
1 // REQUIRES: arm-registered-target
2 // RUN: %clang_cc1 -emit-llvm -o - -triple arm-none-linux-gnueabi -target-feature "+soft-float-abi" %s | FileCheck %s
3 // RUN: %clang_cc1 -verify -triple arm-none-linux-gnueabi -target-feature "+soft-float-abi" %s
4 
5 // CHECK-NOT: +soft-float-abi
6 
foo()7 void foo() {}
bar()8 __attribute__((target("crc"))) void bar() {}
baz()9 __attribute__((target("soft-float-abi"))) void baz() {} // expected-warning{{unsupported 'soft-float-abi' in the 'target' attribute string}}
10