]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/checkimports1c.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / checkimports1c.d
1 // REQUIRED_ARGS: -transition=checkimports -transition=import
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/checkimports1c.d(16): Deprecation: local import search method found struct imports.diag12598a.lines instead of variable checkimports1c.C.lines
6 fail_compilation/checkimports1c.d(16): Error: struct 'lines' is a type, not an lvalue
7 ---
8 */
9
10 // old lookup + information (the order of switches is reverse)
11 class C
12 {
13 void f()
14 {
15 import imports.diag12598a;
16 lines ~= "";
17 }
18
19 string[] lines;
20 }