d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git] / gcc / testsuite / gdc.test / compilable / test13226.d
blob10407bdef8ae0df92e61da0ca07451d7185bd414
1 // REQUIRED_ARGS: -o-
2 // EXTRA_FILES: imports/a13226.d
3 // PERMUTE_ARGS: -version=bug
5 import imports.a13226;
7 class C
9 // class C member m is not accessible
10 version(bug) mixin(t!(typeof(this), "f")); else {}
11 version(bug) mixin(u!(typeof(this), "v")); else {}
13 void f() {}
14 int v;
16 // here is ok
17 version(bug) {} else mixin(t!(typeof(this), "f"));
18 version(bug) {} else mixin(u!(typeof(this), "v"));
21 struct S
23 // struct S member m is not accessible
24 version(bug) mixin(t!(typeof(this), "f")); else {}
25 version(bug) mixin(u!(typeof(this), "v")); else {}
27 void f() {}
28 int v;
30 // here is ok
31 version(bug) {} else mixin(t!(typeof(this), "f"));
32 version(bug) {} else mixin(u!(typeof(this), "v"));