]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/faildeleteaa.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / faildeleteaa.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/faildeleteaa.d(11): Error: cannot delete type int
5 ---
6 */
7
8 void main()
9 {
10 int[int] aa = [1 : 2];
11 delete aa[1];
12 }