gcc/testsuite/gdc.test/fail_compilation/biterrors.d
raw| 1 | /* REQUIRED_ARGS: -preview=bitfields |
| 2 | * TEST_OUTPUT: |
| 3 | --- |
| 4 | fail_compilation/biterrors.d(103): Error: initializer not allowed for bit-field declaration |
| 5 | fail_compilation/biterrors.d(104): Error: storage class not allowed for bit-field declaration |
| 6 | --- |
| 7 | */ |
| 8 | |
| 9 | #line 100 |
| 10 | |
| 11 | struct S |
| 12 | { |
| 13 | int i : 3 = 7; |
| 14 | static int j : 3; |
| 15 | } |