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, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
fail_compilation
/
diag9247.d
blob
1519b10f827b1a9384bf42a8c45f498898e817c2
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/diag9247.d(11): Error: functions cannot return opaque type `S` by value
5
fail_compilation/diag9247.d(12): Error: functions cannot return opaque type `S` by value
6
---
7
*/
8
9
struct
S
;
10
11
S
foo
();
12
S
function
()
bar
;