]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail122.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail122.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail122.d(12): Error: undefined identifier `y`
5 ---
6 */
7
8 // Issue 228 - Crash on inferring function literal return type after prior errors
9
10 void main()
11 {
12 y = 2;
13 auto x = function(){};
14 }