summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/expr/cast7.C
blob: c948919e9450fa4a6ddd0a9baa1064ee8874680c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// PR c++/27177

struct X {};

struct Y : virtual X {};
struct Z : virtual X {};

struct A : Y, Z {};

struct B : A
{
  static const int i = sizeof((Z*)(B*)0);
};