repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
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
blob
3e050960a186a1ef80996e2234347a738f4c6df0
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
(...);
9
10
struct
S20775
11
{
12
int
field
;
13
~
this
() { }
14
}
15
16
void
test
()
17
{
18
auto
v
=
S20775
(
0
);
19
variadic
(
v
,
20
S20775
(
1
));
21
}