summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/other/incomplete3.C
blob: 14de98eb620f169eff5f7a12c1ce27f7388fb5f2 (plain)
1
2
3
4
5
6
7
8
9
//PR c++/28054

struct A;

struct B
{
    friend A : 2; // { dg-error "incomplete type" }
};