Debian Codegraph @

gcc/testsuite/g++.dg/parse/class2.C

raw
1 // PR c++/13140
2
3 struct foo {
4 foo();
5 void f();
6 static int i;
7 };
8
9
10 namespace bar {
11 foo::foo() {} // { dg-error "namespace" }
12 void foo::f() {} // { dg-error "namespace" }
13 int foo::i; // { dg-error "namespace" }
14 }