aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/inherit/virtual3.C
blob: 65ae76c0b3dbd1378cd5ba9c888feab794766655 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//PR c++/29022

struct A
{
  operator int();
};

struct B : virtual A;	// { dg-error "token" }

int foo(B &b)
{
  return b;		// { dg-error "cannot convert" }
}