blob: 5a56210645636cb1c605be6c9fa95bf51431276b [file] [log] [blame]
/* APPLE LOCAL file elide global inits 3814991 */
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-final { scan-assembler-not "_GLOBAL__I_" } } */
/* Radar 3814991 */
/* virtual inheritance or virtual functions require a ctor for now. */
int j;
struct B {
~B() { }
B() {
int i;
i = 1;
if (0) ++j;
if (1) i = 3;
}
};
struct Foo : public B {
Foo() { }
};
Foo foo;