summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/spellcheck-options-14.c
blob: 3cd38ce289044cfdc3a5c24d1433a03f9cf97f24 (plain)
1
2
3
4
5
6
7
8
/* Verify that we offer suggestions for misspelled sanitizer options
   (PR driver/78877).  */

/* { dg-do compile } */
/* { dg-options "-fsanitize=addres,nul,this-is-not-a-sanitizer-option" } */
/* { dg-error "unrecognized argument to '-fsanitize=' option: 'addres'; did you mean 'address'" "" { target *-*-* } 0 } */
/* { dg-error "unrecognized argument to '-fsanitize=' option: 'nul'; did you mean 'null'" "" { target *-*-* } 0 } */
/* { dg-error "unrecognized argument to '-fsanitize=' option: 'this-is-not-a-sanitizer-option'" "" { target *-*-* } 0 } */