Implement C _FloatN, _FloatNx types.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr50222.c
blobf534d8960be00083697dca6c2dc8e299e0c241ce
1 /* { dg-do compile } */
2 /* { dg-options "-funswitch-loops -ftree-loop-distribution" } */
4 typedef struct AVProgram {
5 void *priv_data;
6 unsigned int nb_streams;
7 } AVFormatContext;
8 typedef struct {
9 unsigned short flags;
10 unsigned char stream_id;
11 } FrameCode;
12 typedef struct {
13 FrameCode frame_code[256];
14 } NUTContext;
15 void build_frame_code(AVFormatContext *s, int stream_id,
16 int is_audio, int pred_count)
18 NUTContext *nut = s->priv_data;
19 int keyframe_0_esc = s->nb_streams > 2;
20 int start2 = 1 + 253*stream_id / s->nb_streams;
21 int key_frame;
22 for(key_frame=0; key_frame<2; key_frame++)
24 FrameCode *ft;
25 if (is_audio && keyframe_0_esc && key_frame==0)
26 continue;
27 ft= &nut->frame_code[start2];
28 ft->flags|= 3;
29 ft->stream_id= stream_id;