blob: b0ae7224da52f4d74d6cf0c9409ad100f58516a4 [file] [log] [blame]
// https://issues.dlang.org/show_bug.cgi?id=22084
/*
TEST_OUTPUT:
---
fail_compilation/fail22084.d(22): Error: cannot pass types that need destruction as variadic arguments
---
*/
import core.stdc.stdarg;
extern(C++) void testVariadic(int a, ...)
{
}
struct Destructor
{
~this() { }
}
void test()
{
auto a0 = Destructor();
testVariadic(1, a0);
}