1 // Verify we don't try to allocate the same stack slot for
2 // buf1 and buf2 in qux. While there is a CLOBBER stmt for buf1
3 // from inlined destructor, the buf1 variable doesn't go out of scope
4 // until after the baz call.
6 // { dg-skip-if "requires hosted libstdc++ for cstring" { ! hostedlib } }
13 struct S { char buf[128]; S () { memset (buf, ' ', 128); }; ~S () {}; };
15 __attribute__((noipa)) void
21 __attribute__((noipa)) int
27 __attribute__((noipa)) void
32 memset (a->buf, '0', 128);
33 memset (b->buf, '1', 128);
34 if (bar (a) != '0' || bar (b) != '1')
40 __attribute__((noipa)) void
45 S *p = new (buf1) (S);