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
d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test19145.d
blob
ef5faa840f7bebfe13fd5ed8c203785565896ba7
1
// https://issues.dlang.org/show_bug.cgi?id=19415
2
3
struct
S
4
{
5
int
x
;
6
S
foo
()
return
{
return
S
(
x
); }
7
this
(
this
)
@disable
;
8
}
9
10
S
bar
()
11
{
12
S s
;
13
return
s
;
// Error: struct `S` is not copyable because it is annotated with @disable
14
}