d: Merge upstream dmd, druntime 4c18eed967, phobos d945686a4.
[official-gcc.git] / gcc / testsuite / gdc.test / fail_compilation / test15785.d
blobfc61e3db070c59afe6e43a1888c2b8e8f1543c0d
1 // EXTRA_FILES: imports/test15785.d
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/test15785.d(17): Error: no property `foo` for `super` of type `imports.test15785.Base`
6 fail_compilation/imports/test15785.d(3): class `Base` defined here
7 fail_compilation/test15785.d(18): Error: undefined identifier `bar`
8 ---
9 */
11 import imports.test15785;
13 class Derived : Base
15 void test()
17 super.foo();
18 bar();