[AArch64/arm] PR testsuite/85326 Avoid C++ tests when C++ compiler not present
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_11.c
bloba3df438206b7a41e0a48db350f63109d763b2e6c
1 /* { dg-do compile } */
3 /* Reject the negated form of non-negatable attributes. */
5 __attribute__ ((target ("no-general-regs-only")))
6 int
7 foo (int a)
9 return a + 1;
12 /* { dg-error "does not allow a negated form" "" { target *-*-* } 0 } */
13 /* { dg-error "is not valid" "" { target *-*-* } 0 } */