aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/spellcheck-pr80177.C
blob: 7367887a37b09ed52d0c58387e77775903d23ecb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// { dg-do compile { target c++11 } }
// { dg-options "-fdiagnostics-show-caret" }

void pr80177 ()
{
  static_assertion (1 == 0, "1 == 0"); // { dg-error "3: 'static_assertion' was not declared in this scope; did you mean 'static_assert'\\?" }
  /* { dg-begin-multiline-output "" }
   static_assertion (1 == 0, "1 == 0");
   ^~~~~~~~~~~~~~~~
   static_assert
     { dg-end-multiline-output "" } */
}