aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.mike/misc7.C
blob: e613ad9e6bac436af24d51fe7a6f73e545d8d738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Build don't link: 
// GROUPS passed MI
struct S1 { };

struct S2 : S1 { };
struct S3 : S1 { };

struct S4 : S3, S2 { };

struct S1 *p1;
struct S4 *p4;

void foobar ()
{
  p1 = p4;		// ERROR - this is illegal// ERROR - .*
}