1 /*
2 TEST_OUTPUT:
3 ---
4 fail_compilation/diag11819b.d(28): Error: unrecognized trait `HasMember`, did you mean `hasMember`?
5 fail_compilation/diag11819b.d(29): Error: unrecognized trait `Identifier`, did you mean `identifier`?
6 fail_compilation/diag11819b.d(30): Error: unrecognized trait `GetProtection`, did you mean `getProtection`?
7 fail_compilation/diag11819b.d(31): Error: unrecognized trait `Parent`, did you mean `parent`?
8 fail_compilation/diag11819b.d(32): Error: unrecognized trait `GetMember`, did you mean `getMember`?
9 fail_compilation/diag11819b.d(33): Error: unrecognized trait `GetOverloads`, did you mean `getOverloads`?
10 fail_compilation/diag11819b.d(34): Error: unrecognized trait `GetVirtualFunctions`, did you mean `getVirtualFunctions`?
11 fail_compilation/diag11819b.d(35): Error: unrecognized trait `GetVirtualMethods`, did you mean `getVirtualMethods`?
12 fail_compilation/diag11819b.d(36): Error: unrecognized trait `ClassInstanceSize`, did you mean `classInstanceSize`?
13 fail_compilation/diag11819b.d(37): Error: unrecognized trait `AllMembers`, did you mean `allMembers`?
14 fail_compilation/diag11819b.d(38): Error: unrecognized trait `DerivedMembers`, did you mean `derivedMembers`?
15 fail_compilation/diag11819b.d(39): Error: unrecognized trait `IsSame`, did you mean `isSame`?
16 fail_compilation/diag11819b.d(40): Error: unrecognized trait `Compiles`, did you mean `compiles`?
17 fail_compilation/diag11819b.d(41): Error: unrecognized trait `Parameters`, did you mean `parameters`?
18 fail_compilation/diag11819b.d(42): Error: unrecognized trait `GetAliasThis`, did you mean `getAliasThis`?
19 fail_compilation/diag11819b.d(43): Error: unrecognized trait `GetAttributes`, did you mean `getAttributes`?
20 fail_compilation/diag11819b.d(44): Error: unrecognized trait `GetFunctionAttributes`, did you mean `getFunctionAttributes`?
21 fail_compilation/diag11819b.d(45): Error: unrecognized trait `GetUnitTests`, did you mean `getUnitTests`?
22 fail_compilation/diag11819b.d(46): Error: unrecognized trait `GetVirtualIndex`, did you mean `getVirtualIndex`?
23 ---
24 */
25
main()26 void main()
27 {
28 if (__traits(HasMember)) { }
29 if (__traits(Identifier)) { }
30 if (__traits(GetProtection)) { }
31 if (__traits(Parent)) { }
32 if (__traits(GetMember)) { }
33 if (__traits(GetOverloads)) { }
34 if (__traits(GetVirtualFunctions)) { }
35 if (__traits(GetVirtualMethods)) { }
36 if (__traits(ClassInstanceSize)) { }
37 if (__traits(AllMembers)) { }
38 if (__traits(DerivedMembers)) { }
39 if (__traits(IsSame)) { }
40 if (__traits(Compiles)) { }
41 if (__traits(Parameters)) { }
42 if (__traits(GetAliasThis)) { }
43 if (__traits(GetAttributes)) { }
44 if (__traits(GetFunctionAttributes)) { }
45 if (__traits(GetUnitTests)) { }
46 if (__traits(GetVirtualIndex)) { }
47 }
48