summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/error8.C
blob: 6d3bf5a856ad1296db8faa8c2ce1be6f87b2ba77 (plain)
1
2
3
4
5
6
7
8
9
// PR c++/13438
// {  dg-options "-fshow-column" }

struct A { friend typename struct B; };


// { dg-error "28:expected nested-name-specifier before 'struct'" "" { target *-*-* } 4 }
// { dg-error "35:multiple types in one declaration" "" { target *-*-* } 4 }
// { dg-error "12:friend declaration does not name a class or function" "" { target *-*-* } 4 }