gcc/testsuite/g++.dg/spellcheck-pr80177.C
raw| 1 | // { dg-do compile { target c++11 } } |
| 2 | // { dg-options "-fdiagnostics-show-caret" } |
| 3 | |
| 4 | void pr80177 () |
| 5 | { |
| 6 | static_assertion (1 == 0, "1 == 0"); // { dg-error "3: 'static_assertion' was not declared in this scope; did you mean 'static_assert'\\?" } |
| 7 | /* { dg-begin-multiline-output "" } |
| 8 | static_assertion (1 == 0, "1 == 0"); |
| 9 | ^~~~~~~~~~~~~~~~ |
| 10 | static_assert |
| 11 | { dg-end-multiline-output "" } */ |
| 12 | } |