[AArch64][12/14] Target attributes and target pragmas tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / target_attr_12.c
blob39cb996400308ceba9e89a5bd9de21e3219d324c
1 /* { dg-do compile } */
3 /* Reject arguments to attributes that do not accept any. */
5 __attribute__ ((target ("general-regs-only=+crc")))
6 int
7 foo (int a)
9 return a + 1;
12 /* { dg-error "does not accept an argument" "" { target *-*-* } 0 } */
13 /* { dg-error "is invalid" "" { target *-*-* } 0 } */