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

struct Z {};
struct A : Z {};

Z* implicitToZ (Z*);

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