]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail343.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail343.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail343.d(22): Error: function fail343.TimedApp.run cannot override final function I.fail343.Timer.run
5 fail_compilation/fail343.d(22): Error: function fail343.TimedApp.run cannot override final function Application.fail343.Application.run
6 ---
7 */
8
9 interface Timer
10 {
11 final void run() { }
12 }
13
14 interface I : Timer { }
15 interface Application
16 {
17 final void run() { }
18 }
19 class TimedApp : I, Application
20 {
21 // cannot define run()
22 void run() { }
23 }