libphobos/src/std/internal/test/uda.d
raw| 1 | /** |
| 2 | For testing only. |
| 3 | Provides a struct with UDA's defined in an external module. |
| 4 | Useful for validating behavior with member privacy. |
| 5 | */ |
| 6 | module std.internal.test.uda; |
| 7 | |
| 8 | enum Attr; |
| 9 | |
| 10 | struct HasPrivateMembers |
| 11 | { |
| 12 | @Attr int a; |
| 13 | int b; |
| 14 | @Attr private int c; |
| 15 | private int d; |
| 16 | } |