]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/compilable/test16303.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / compilable / test16303.d
CommitLineData
b4c522fa
IB
1// https://issues.dlang.org/show_bug.cgi?id=16303
2
3void yayf(void function(int*) fp);
4void yayd(void delegate(int*) dg);
5
6void 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}