Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/diagnostic/out-of-class-redeclaration.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 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" } |