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
/
test21204.d
blob
45bb6d727ab30c89d2c048a32963b18f3a601d92
1
// https://issues.dlang.org/show_bug.cgi?id=21204
2
/*
3
TEST_OUTPUT:
4
---
5
fail_compilation/test21204.d(22): Error: generating an `inout` copy constructor for `struct test21204.B` failed, therefore instances of it are uncopyable
6
---
7
*/
8
9
struct
A
10
{
11
this
(
ref
A other
) {}
12
}
13
14
struct
B
15
{
16
A a
;
17
}
18
19
void
example
()
20
{
21
B b1
;
22
B b2
=
b1
;
23
}