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