mirror of
https://github.com/dlang/dmd.git
synced 2025-04-28 06:00:13 +03:00
25 lines
532 B
D
25 lines
532 B
D
/*
|
|
EXTRA_FILES: imports/fail347a.d
|
|
TEST_OUTPUT:
|
|
---
|
|
fail_compilation/fail347.d(22): Error: undefined identifier `bbr`, did you mean variable `bar`?
|
|
fail_compilation/fail347.d(23): Error: no property `ofo` for type `S`, did you mean `fail347.S.foo`?
|
|
fail_compilation/fail347.d(24): Error: undefined identifier `strlenx`, did you mean function `strlen`?
|
|
---
|
|
*/
|
|
|
|
//import core.stdc.string;
|
|
import imports.fail347a;
|
|
|
|
struct S
|
|
{
|
|
int foo;
|
|
}
|
|
|
|
void main()
|
|
{
|
|
S bar;
|
|
bbr.foo = 3;
|
|
bar.ofo = 4;
|
|
auto s = strlenx("hello");
|
|
}
|