aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/spellcheck-options-1.c
blob: 275f86c178d64401dde28ddbcde30cb4f7c1f809 (plain)
1
2
3
4
5
6
7
/* Verify that we provide a hint if the user misspells an option argument
   (PR middle-end/77475).  */

/* { dg-do compile } */
/* { dg-options "-march=hasvel" } */
/* { dg-error "bad value .'hasvel'. for '-march=' switch"  "" { target *-*-* } 0 } */
/* { dg-message "valid arguments to '-march=' switch are: \[^\n\r]*; did you mean 'haswell'?"  "" { target *-*-* } 0 } */