summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/spellcheck_3.c
blob: 03d2bbf14a0cd27cb8cc9d067d458c0a48cba849 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */

__attribute__((target ("tune=cortex-a57-typo"))) void
foo ()
{
  /* { dg-message "valid arguments are: \[^\n\r]*; did you mean 'cortex-a57?"  "" { target *-*-* } .-1 } */
  /* { dg-error "unknown value 'cortex-a57-typo' for 'tune' target attribute"  "" { target *-*-* } .-2 } */
  /* { dg-error "target attribute 'tune=cortex-a57-typo' is invalid"  "" { target *-*-* } .-3 } */
}