1 // REQUIRED_ARGS: -de
2 /*
3 TEST_OUTPUT:
4 ---
5 fail_compilation/fail243.d(23): Deprecation: class fail243.DepClass is deprecated
6 fail_compilation/fail243.d(24): Deprecation: struct fail243.DepStruct is deprecated
7 fail_compilation/fail243.d(25): Deprecation: union fail243.DepUnion is deprecated
8 fail_compilation/fail243.d(26): Deprecation: enum fail243.DepEnum is deprecated
9 fail_compilation/fail243.d(27): Deprecation: alias fail243.DepAlias is deprecated
10 ---
11 */
12 
13 deprecated
14 {
15     class DepClass {}
16     struct DepStruct {}
17     union DepUnion {}
18     enum DepEnum { A }
19     alias int DepAlias;
20     //typedef int DepTypedef;
21 }
22 
func(DepClass obj)23 void func(DepClass obj) {}
func(DepStruct obj)24 void func(DepStruct obj) {}
func(DepUnion obj)25 void func(DepUnion obj) {}
func(DepEnum obj)26 void func(DepEnum obj) {}
func(DepAlias obj)27 void func(DepAlias obj) {}
28 //void func(DepTypedef obj) {}
29