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
/
test18607.d
blob
b3af393bdac432455a297547805c8331107ceefd
1
/* TEST_OUTPUT:
2
---
3
fail_compilation/test18607.d(10): Error: function `test18607.test!int.test` no `return exp;` or `assert(0);` at end of function
4
& test
5
---
6
*/
7
8
// https://issues.dlang.org/show_bug.cgi?id=18607
9
10
int
*
test
(
T
...)()
pure
@safe
{
11
L
:
foreach
(
_
;
T
) {
12
continue
L
;
13
return null
;
14
}
15
}
16
17
18
pragma
(
msg
, &
test
!(
int
));