]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail17492.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail17492.d
1 /* TEST_OUTPUT:
2 ---
3 fail_compilation/fail17492.d(19): Error: class fail17492.C.testE.I already exists at fail_compilation/fail17492.d(12). Perhaps in another function with the same name?
4 ---
5 https://issues.dlang.org/show_bug.cgi?id=17492
6 */
7
8 class C
9 {
10 void testE()
11 {
12 class I
13 {
14 }
15 }
16
17 void testE()
18 {
19 class I
20 {
21 }
22 }
23 }