MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail20775.d
blob3e050960a186a1ef80996e2234347a738f4c6df0
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail20775.d(19): Error: cannot pass types that need destruction as variadic arguments
5 fail_compilation/fail20775.d(20): Error: cannot pass types that need destruction as variadic arguments
6 ---
7 */
8 extern void variadic(...);
10 struct S20775
12 int field;
13 ~this() { }
16 void test()
18 auto v = S20775(0);
19 variadic(v,
20 S20775(1));