Merge from mainline (167278:168000).
[official-gcc/graphite-test-results.git] / gcc / testsuite / gcc.dg / graphite / pr37684.c
blobab5a68533165f09e4a4a5da4286f1cce4b269740
1 /* { dg-options "-O2 -fdump-tree-graphite-all" } */
3 typedef struct _IO_FILE FILE;
4 struct _IO_marker {
5 };
6 enum __codecvt_result
8 __codecvt_noconv
9 };
10 struct _IO_FILE {
12 extern struct _IO_FILE *stderr;
14 typedef
15 struct {
16 unsigned int avail_in;
17 unsigned int avail_out;
18 void *state;
19 void *(*bzalloc)(void *,int,int);
20 void *opaque;
22 bz_stream;
23 extern int BZ2_bzCompressInit (
24 bz_stream* strm,
25 int blockSize100k,
26 int verbosity,
27 int workFactor
29 typedef unsigned char Bool;
30 typedef int Int32;
31 typedef unsigned int UInt32;
33 typedef
34 struct {
35 Int32 mode;
36 Int32 state;
37 UInt32* arr1;
38 UInt32* arr2;
39 UInt32* ftab;
40 Int32 nblock;
41 Int32 nblockMAX;
42 Bool inUse[256];
43 Int32 blockNo;
45 EState;
47 void prepare_new_block ( EState* s )
49 Int32 i;
50 for (i = 0; i < 256; i++) s->inUse[i] = ((Bool)0);
51 s->blockNo++;
54 int BZ2_bzCompressInit
55 ( bz_stream* strm,
56 int blockSize100k,
57 int verbosity,
58 int workFactor )
60 EState* s;
61 s = (strm->bzalloc)(strm->opaque,(sizeof(EState)),1);
62 if (s->arr1 == ((void *)0) || s->arr2 == ((void *)0) || s->ftab == ((void *)0)) {
64 prepare_new_block ( s );
67 /* { dg-final { cleanup-tree-dump "graphite" } } */