summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/namespace-definition.C
blob: b7d4034cd7b2d548e0363028d839b1e66332b1c0 (plain)
1
2
3
4
5
6
7
8
9
10
// PR 30891
// { dg-do compile }

int main() {
  int i = 0;
  namespace foo { // { dg-error "'namespace' definition is not allowed here" } 
    int j = 0;
  }
  return 0;
}