gcc/testsuite/gcc.dg/spellcheck-options-16.c
raw| 1 | /* Verify that we don't offer non-recoverable options as suggestions |
| 2 | for misspelled -fsanitize-recover= arguments (PR driver/78877). */ |
| 3 | |
| 4 | /* { dg-do compile } */ |
| 5 | /* { dg-options "-fsanitize-recover=threed" } */ |
| 6 | /* Ensure we don't offer non-recoverable "-fsanitize-recover=thread" |
| 7 | as a suggestion. */ |
| 8 | /* { dg-bogus "did you mean" "" { target *-*-* } 0 } */ |
| 9 | /* { dg-error "unrecognized argument to '-fsanitize-recover=' option: 'threed'" "" { target *-*-* } 0 } */ |