blob: 67d572ab2f30f76cb44da9bb281f7c684d23283a [file] [log] [blame]
/* Check that attribute target arm is rejected for M profile. */
/* { dg-do compile } */
/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv6-m" } } */
/* { dg-require-effective-target arm_arch_v6m_ok } */
/* { dg-add-options arm_arch_v6m } */
int __attribute__((target("arm")))
foo(int a)
{ /* { dg-error "does not support" } */
return a ? 1 : 5;
}