PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / opt / pr79085.C
blob1d75d6a730094f105e8ec1aef213df7714184b90
1 // PR c++/79085
2 // { dg-do compile }
3 // { dg-options "-Os" }
4 // { dg-additional-options "-mstrict-align" { target { aarch64*-*-* powerpc*-*-linux* powerpc*-*-elf* } } }
6 void *operator new (__SIZE_TYPE__, void *p) { return p; }
8 struct S
10   S ();
11   S (const S &);
12   ~S (void);
13   int i;
16 S foo ();
18 static char buf [sizeof (S) + 1];
20 S *
21 bar ()
23   return new (buf + 1) S (foo ());