summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/abi/empty5.C
blob: c3717727e21469e72f51025c007b81cc94f1cb2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// { dg-options "-fabi-version=0" }

struct A {};

struct B {
  A a;
  virtual void f () {}
};

struct C : public B, public A {};

C c;

int main () {
  if ((void*) (A*) &c != &c)
    return 1;
}