MATCH: Improve `A CMP 0 ? A : -A` set of patterns to use bitwise_equal_p.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail22084.d
blobb0ae7224da52f4d74d6cf0c9409ad100f58516a4
1 // https://issues.dlang.org/show_bug.cgi?id=22084
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail22084.d(22): Error: cannot pass types that need destruction as variadic arguments
6 ---
7 */
8 import core.stdc.stdarg;
10 extern(C++) void testVariadic(int a, ...)
14 struct Destructor
16 ~this() { }
19 void test()
21 auto a0 = Destructor();
22 testVariadic(1, a0);