C++: simplify output from suggest_alternatives_for
[official-gcc.git] / gcc / testsuite / g++.dg / spellcheck-pr80177.C
blob7367887a37b09ed52d0c58387e77775903d23ecb
1 // { dg-do compile { target c++11 } }
2 // { dg-options "-fdiagnostics-show-caret" }
4 void pr80177 ()
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 "" } */