Debian Codegraph @

gcc/testsuite/g++.dg/parse/namespace-definition.C

raw
1 // PR 30891
2 // { dg-do compile }
3
4 int main() {
5 int i = 0;
6 namespace foo { // { dg-error "'namespace' definition is not allowed here" }
7 int j = 0;
8 }
9 return 0;
10 }