gcc/testsuite/gdc.test/compilable/test16303.d
raw| 1 | // https://issues.dlang.org/show_bug.cgi?id=16303 |
| 2 | |
| 3 | void yayf(void function(int*) fp); |
| 4 | void yayd(void delegate(int*) dg); |
| 5 | |
| 6 | void bar() |
| 7 | { |
| 8 | void function(const(int)* p) fp; |
| 9 | yayf(fp); // should be good but produces error |
| 10 | |
| 11 | void delegate(const(int)* p) dg; |
| 12 | yayd(dg); // should be good but produces error |
| 13 | } |