Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/g++.dg/spellcheck-pr79298.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 source
// Ensure that we can offer suggestions for misspellings via a // namespace alias. // { dg-options "-fdiagnostics-show-caret" } namespace N { int x; int color; } namespace M = N; namespace O = M; int foo () { return M::y; // { dg-error ".y. is not a member of .M." } /* { dg-begin-multiline-output "" } return M::y; ^ { dg-end-multiline-output "" } */ } int bar () { return O::colour; // { dg-error ".colour. is not a member of .O.; did you mean 'color'\\?" } /* { dg-begin-multiline-output "" } return O::colour; ^~~~~~ color { dg-end-multiline-output "" } */ }