view gcc/testsuite/gcc.target/arm/attr_arm-err.c @ 152:2b5abeee2509

update gcc11
author anatofuz
date Mon, 25 May 2020 07:50:57 +0900
parents 1830386684a0
children
line wrap: on
line source

/* 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;
}