OpenMP: Check additional restrictions on context selector properties
[official-gcc.git] / gcc / testsuite / gcc.target / arm / attr_arm-err.c
blob67d572ab2f30f76cb44da9bb281f7c684d23283a
1 /* Check that attribute target arm is rejected for M profile. */
2 /* { dg-do compile } */
3 /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv6-m" } } */
4 /* { dg-require-effective-target arm_arch_v6m_ok } */
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;