| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O1" } */ |
| 3 |
|
| 4 |
typedef struct { |
| 5 |
_Bool : 1; |
| 6 |
} Http2Identifier; |
| 7 |
typedef struct { |
| 8 |
_Bool is_end; |
| 9 |
Http2Identifier identifier; |
| 10 |
} Http2DataFrame; |
| 11 |
typedef struct { |
| 12 |
Http2Identifier identifier; |
| 13 |
_Bool end_headers; |
| 14 |
} Http2ContinuationFrame; |
| 15 |
typedef struct { |
| 16 |
union { |
| 17 |
Http2DataFrame data; |
| 18 |
Http2ContinuationFrame continuation; |
| 19 |
}; |
| 20 |
} Http2Frame; |
| 21 |
typedef struct { |
| 22 |
Http2Identifier stream_identifier; |
| 23 |
} Http2RawHeader; |
| 24 |
Http2RawHeader parse_http2_continuation_frame_http2_raw_header; |
| 25 |
Http2Frame gh2f; |
| 26 |
void http2_send_and_receive_preface() { |
| 27 |
Http2ContinuationFrame continuation_frame = { |
| 28 |
parse_http2_continuation_frame_http2_raw_header.stream_identifier, 0}; |
| 29 |
Http2Frame frame = {.continuation = continuation_frame}; |
| 30 |
gh2f = frame; |
| 31 |
} |