1 /* { dg-do compile } */
2 /* { dg-options "-O -fno-tree-sra -fdump-tree-fre1-details" } */
9 struct Bar : public Foo {
14 extern "C" void abort(void);
24 static_cast<Foo&>(b1) = static_cast<Foo&>(b2);
25 if (b1.i != 0 || b1.b != 1)
32 /* { dg-final { scan-tree-dump "Replaced b1.b with 1" "fre1" } } */
33 /* { dg-final { scan-tree-dump "Replaced b1.D.\[0-9\]*.i with 0" "fre1" } } */
34 /* { dg-final { scan-tree-dump "Replaced b1.D.\[0-9\]*.f with 1" "fre1" } } */