(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
arm/
attr_arm-err.c
       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 } */
       6  
       7  int __attribute__((target("arm")))
       8  foo(int a)
       9  {  /* { dg-error "does not support" } */
      10    return a ? 1 : 5;
      11  }
      12  
      13