| 1 |
/* |
| 2 |
EXTRA_FILES: imports/fail347a.d |
| 3 |
TEST_OUTPUT: |
| 4 |
--- |
| 5 |
fail_compilation/fail347.d(26): Error: undefined identifier `bbr`, did you mean variable `bar`? |
| 6 |
fail_compilation/fail347.d(27): Error: no property `ofo` for type `S`, did you mean `fail347.S.foo`? |
| 7 |
fail_compilation/fail347.d(29): Error: no property `fool` for `sp` of type `fail347.S*` |
| 8 |
fail_compilation/fail347.d(20): did you mean variable `foo`? |
| 9 |
fail_compilation/fail347.d(30): Error: undefined identifier `strlenx`, did you mean function `strlen`? |
| 10 |
fail_compilation/fail347.d(31): Error: no property `strlenx` for `"hello"` of type `string` |
| 11 |
fail_compilation/imports/fail347a.d(3): did you mean function `strlen`? |
| 12 |
--- |
| 13 |
*/ |
| 14 |
|
| 15 |
//import core.stdc.string; |
| 16 |
import imports.fail347a; |
| 17 |
|
| 18 |
struct S |
| 19 |
{ |
| 20 |
int foo; |
| 21 |
} |
| 22 |
|
| 23 |
void main() |
| 24 |
{ |
| 25 |
S bar; |
| 26 |
bbr.foo = 3; |
| 27 |
bar.ofo = 4; |
| 28 |
auto sp = &bar; |
| 29 |
sp.fool = 5; |
| 30 |
auto s = strlenx("hello"); |
| 31 |
auto q = "hello".strlenx(); |
| 32 |
} |