Mercurial > hg > CbC > CbC_gcc
diff gcc/testsuite/g++.dg/spellcheck-c++-11-keyword.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line diff
--- a/gcc/testsuite/g++.dg/spellcheck-c++-11-keyword.C Thu Oct 25 07:37:49 2018 +0900 +++ b/gcc/testsuite/g++.dg/spellcheck-c++-11-keyword.C Thu Feb 13 11:34:05 2020 +0900 @@ -3,13 +3,13 @@ // { dg-options "-std=c++98" } constexpr int a = 1; // { dg-bogus "did you mean" } -// { dg-error ".constexpr. does not name a type" "" { target *-*-* } .-1 } -// { dg-message "C\\+\\+11 .constexpr. only available with -std=c\\+\\+11 or -std=gnu\\+\\+11" "" { target *-*-* } .-2 } +// { dg-error "'constexpr' does not name a type" "" { target *-*-* } .-1 } +// { dg-message "C\\+\\+11 'constexpr' only available with '-std=c\\+\\+11' or '-std=gnu\\+\\+11'" "" { target *-*-* } .-2 } /* If the user typos "constexpr" (here as "consexpr"), don't offer it as a spelling suggestion in C++98 mode. */ consexpr int a = 1; // { dg-bogus "did you mean" } -// { dg-error ".consexpr. does not name a type" "" { target *-*-* } .-1 } +// { dg-error "'consexpr' does not name a type" "" { target *-*-* } .-1 } decltype i = 0; // { dg-bogus "did you mean" } -// { dg-error ".decltype. does not name a type" "" { target *-*-* } .-1 } +// { dg-error "'decltype' does not name a type" "" { target *-*-* } .-1 }