]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gdc.test/fail_compilation/fail347.d
Add D front-end, libphobos library, and D2 testsuite.
[thirdparty/gcc.git] / gcc / testsuite / gdc.test / fail_compilation / fail347.d
1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/fail347.d(21): Error: undefined identifier `bbr`, did you mean variable `bar`?
5 fail_compilation/fail347.d(22): Error: no property 'ofo' for type 'S', did you mean 'foo'?
6 fail_compilation/fail347.d(23): Error: undefined identifier `strlenx`, did you mean function `strlen`?
7 ---
8 */
9
10 //import core.stdc.string;
11 import imports.fail347a;
12
13 struct S
14 {
15 int foo;
16 }
17
18 void main()
19 {
20 S bar;
21 bbr.foo = 3;
22 bar.ofo = 4;
23 auto s = strlenx("hello");
24 }