blob: f3c27f6b09f66d18a225ee521cb862942ff96e53 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// { dg-do compile { target { ilp32 || lp64 } } }
struct AddIn
{
virtual ~AddIn() {}
virtual void AddInCall()=0;
};
struct Base
{
char b[32*1024*1024]; // Anything bigger than 16mb causes internal compiler error
virtual ~Base() {}
};
struct Deriv : public Base,
public AddIn
{
void AddInCall() {}
};
int main (int argc, char **argv)
{
Deriv deriv;
deriv.AddInCall();
return 0;
}
|