mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 13:10:12 +03:00
21 lines
392 B
D
21 lines
392 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail20775.d(19): Error: cannot pass types that need destruction as variadic arguments
|
|
fail_compilation/fail20775.d(20): Error: cannot pass types that need destruction as variadic arguments
|
|
---
|
|
*/
|
|
extern void variadic(...);
|
|
|
|
struct S20775
|
|
{
|
|
int field;
|
|
~this() { }
|
|
}
|
|
|
|
void test()
|
|
{
|
|
auto v = S20775(0);
|
|
variadic(v,
|
|
S20775(1));
|
|
}
|