summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/parse/friend3.C
blob: 39322021efcbd9bcebe966fb47d0df47f3fabceb (plain)
1
2
3
4
5
6
7
8
9
10
// { dg-do compile }
//
// PR 11553 catch duplicate friend specifiers

struct S
{
	friend friend class C; // { dg-error "duplicate" }
};