]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/ice4983.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice4983.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
5fee5ec3 4fail_compilation/ice4983.d(14): Error: circular reference to `ice4983.Foo.dg`
b4c522fa
IB
5---
6*/
7
8struct Foo
9{
10 void bar()
11 {
12 }
13
14 void delegate() dg = &Foo.init.bar;
15}