blob: d6724e4690402c29ba2e75b620e41c3116e2fcbe [file]
/* Check that attribute target arm is rejected for M profile. */
/* { dg-do compile } */
/* { 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;
}