summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/conversion7.C
blob: 925433ef6f2fa91e64dccfecc3a238596d4da181 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-do run  }
// Bug: g++ tries to look inside (B*)0 for a virtual base pointer.

struct A
{
};

struct B : virtual A
{
};

A* a;

int main()
{
    a = (B*)0;
}