gcc/testsuite/gdc.test/fail_compilation/parse13361.d
raw| 1 | /* |
| 2 | TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/parse13361.d(11): Error: empty attribute list is not allowed |
| 5 | fail_compilation/parse13361.d(14): Error: empty attribute list is not allowed |
| 6 | fail_compilation/parse13361.d(14): Error: use `@(attributes)` instead of `[attributes]` |
| 7 | --- |
| 8 | */ |
| 9 | struct A |
| 10 | { |
| 11 | @() |
| 12 | int b; |
| 13 | |
| 14 | [] // deprecated style |
| 15 | int c; |
| 16 | } |