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
/
test21198.d
blob
04c3bcff7d3c70c4fff666b38995486730416717
1
// https://issues.dlang.org/show_bug.cgi?id=21198
2
3
/*
4
TEST_OUTPUT:
5
---
6
fail_compilation/test21198.d(23): Error: generating an `inout` copy constructor for `struct test21198.U` failed, therefore instances of it are uncopyable
7
---
8
*/
9
10
struct
S
11
{
12
this
(
ref inout
(
S
)
other
)
inout
{}
13
}
14
15
union
U
16
{
17
S s
;
18
}
19
20
void
fun
()
21
{
22
U original
;
23
U copy
=
original
;
24
}