Debian Codegraph @

gcc/testsuite/g++.dg/diagnostic/out-of-class-redeclaration.C

raw
1 // Adapted from g++.old-deja/g++.law/arm8.C
2
3 struct K {
4 void f(int);
5 };
6
7 void K::f(int); // { dg-error "6:declaration of .void K::f\\(int\\). outside of class" }
8
9 struct L {
10 void g(int) {}
11 };
12
13 void L::g(int); // { dg-error "6:declaration of .void L::g\\(int\\). outside of class" }