1 // PR 30891 2 // { dg-do compile } 3 main()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 } 11