1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdump-tree-dom1" } */
14 new (reinterpret_cast<char *>(i)) Foo();
15 return reinterpret_cast<Foo *>(i)->i[0];
21 new (reinterpret_cast<void *>(i)) Foo();
22 return reinterpret_cast<Foo *>(i)->i[0];
25 int foo_void_offset(void)
28 new (reinterpret_cast<void *>(&i[0])) Foo();
29 return reinterpret_cast<Foo *>(&i[0])->i[0];
32 /* Regarding the xfail, see PR36143. */
33 /* { dg-final { scan-tree-dump-times "return 1;" 3 "dom1" { xfail *-*-* } } } */
34 /* { dg-final { cleanup-tree-dump "dom1" } } */