Projet_SETI_RISC-V/riscv-gnu-toolchain/gcc/gcc/testsuite/g++.dg/spellcheck-pr80177.C

13 lines
401 B
C

// { 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 "" } */
}