mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
21 lines
423 B
D
21 lines
423 B
D
/*
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail20771.d(19): Error: cannot pass types with postblits or copy constructors as variadic arguments
|
|
fail_compilation/fail20771.d(20): Error: cannot pass types with postblits or copy constructors as variadic arguments
|
|
---
|
|
*/
|
|
extern void variadic(...);
|
|
|
|
struct S20771
|
|
{
|
|
int field;
|
|
this(this) { }
|
|
}
|
|
|
|
void test()
|
|
{
|
|
auto v = S20771(0);
|
|
variadic(v,
|
|
S20771(1));
|
|
}
|