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

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