]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gdc.test/fail_compilation/ice12235.d
d: Import dmd b8384668f, druntime e6caaab9, phobos 5ab9ad256 (v2.098.0-beta.1)
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / ice12235.d
CommitLineData
b4c522fa
IB
1/*
2TEST_OUTPUT:
3---
5fee5ec3
IB
4fail_compilation/ice12235.d(14): Error: forward reference to inferred return type of function `__lambda1`
5fail_compilation/ice12235.d(15): Error: forward reference to inferred return type of function `__lambda1`
6fail_compilation/ice12235.d(15): while evaluating `pragma(msg, __lambda1.mangleof)`
b4c522fa
IB
7---
8*/
9
10void main()
11{
12 (){
13 int x;
14 enum s = __traits(parent, x).mangleof;
15 pragma(msg, __traits(parent, x).mangleof);
16 }();
17}