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
/
fail289.d
blob
b1d0882edca121045ab48aba4d92669d9e6029e2
1
/*
2
TEST_OUTPUT:
3
---
4
fail_compilation/fail289.d(12): Error: cannot cast from function pointer to delegate
5
---
6
*/
7
8
alias void delegate
()
Dg
;
9
void
fun
() {}
10
void
gun
()
11
{
12
Dg d
=
cast
(
void delegate
())&
fun
;
13
}