PR c++/67273
[official-gcc.git] / gcc / testsuite / gcc.target / arm / attr_arm-err.c
blob630c06a03b121b9705e1422556bad8952885fc28
1 /* Check that attribute target arm is rejected for M profile. */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target arm_arm_ok } */
4 /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv6-m" } } */
5 /* { dg-add-options arm_arch_v6m } */
7 int __attribute__((target("arm")))
8 foo(int a)
9 { /* { dg-error "does not support" } */
10 return a ? 1 : 5;