]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/diag9451.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / diag9451.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag9451.d(26): Error: cannot create instance of abstract class C2
5 fail_compilation/diag9451.d(26): function 'void f1()' is not implemented
6 fail_compilation/diag9451.d(26): function 'void f2(int)' is not implemented
7 fail_compilation/diag9451.d(26): function 'void f2(float) const' is not implemented
8 fail_compilation/diag9451.d(26): function 'int f2(float) pure' is not implemented
9 ---
10 */
11
12 class C1
13 {
14 abstract void f1();
15 abstract void f2(int);
16 abstract void f2(float) const;
17 abstract int f2(float) pure;
18 }
19
20 class C2 : C1
21 {
22 }
23
24 void main()
25 {
26 auto c2 = new C2;
27 }