aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr34688.c
blob: 60e0f3c9f1556a99690cf973bc31717ba2cf3189 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
typedef __SIZE_TYPE__ size_t;
         typedef struct {
        }
         HashTable;
         typedef struct _zval_struct zval;
         typedef struct _zend_guard {
         HashTable *ht;
        }
         zvalue_value;
         struct _zval_struct {
         zvalue_value value;
        }
         php_output_globals;
         typedef struct _php_stream php_stream;
         typedef struct _php_stream_filter php_stream_filter;
         typedef struct _php_stream_bucket_brigade php_stream_bucket_brigade;
         typedef enum {
         PSFS_ERR_FATAL,  PSFS_FEED_ME,  PSFS_PASS_ON, }
         php_stream_filter_status_t;
         typedef struct _php_stream_filter_ops {
         php_stream_filter_status_t (*filter)(    php_stream *stream,    php_stream_filter *thisfilter,    php_stream_bucket_brigade *buckets_in,    php_stream_bucket_brigade *buckets_out,    size_t *bytes_consumed,    int flags    );
         void (*dtor)(php_stream_filter *thisfilter );
         const char *label;
        }
         php_stream_filter_ops;
         struct _php_stream_filter {
        };
         typedef struct _php_stream_filter_factory {
         php_stream_filter *(*create_filter)(const char *filtername, zval *filterparams, int persistent );
        }
         php_stream_filter_factory;
         typedef enum _php_conv_err_t {
         PHP_CONV_ERR_SUCCESS = 0,  PHP_CONV_ERR_UNKNOWN,  PHP_CONV_ERR_TOO_BIG,  PHP_CONV_ERR_INVALID_SEQ,  PHP_CONV_ERR_UNEXPECTED_EOS,  PHP_CONV_ERR_EXISTS,  PHP_CONV_ERR_MORE,  PHP_CONV_ERR_ALLOC,  PHP_CONV_ERR_NOT_FOUND }
         php_conv_err_t;
         typedef struct _php_conv php_conv;
         typedef php_conv_err_t (*php_conv_convert_func)(php_conv *, const char **, size_t *, char **, size_t *);
         struct _php_conv {
         php_conv_convert_func convert_op;
        }
         php_conv_base64_decode;
         typedef struct _php_conv_qprint_decode {
         php_conv _super;
         const char *lbchars;
        }
         php_conv_qprint_decode;
         static php_conv_err_t php_conv_qprint_decode_convert(php_conv_qprint_decode *inst, const char **in_pp, size_t *in_left_p, char **out_pp, size_t *out_left_p) {
         size_t icnt, ocnt;
         unsigned char *ps, *pd;
         unsigned int scan_stat;
         unsigned int lb_ptr, lb_cnt;
         for (;
       ;
       ) {
         switch (scan_stat) {
         case 0: {
         if (*ps == '=') {
         scan_stat = 1;
        }
     else {
         if (ocnt < 1) {
         goto out;
        }
         *(pd++) = *ps;
         ocnt--;
        }
        }
      break;
         case 1: {
         if (*ps == ' ' || *ps == '\t') {
        }
     else if (!inst->lbchars && lb_cnt == 0 && *ps == '\r') {
         lb_cnt++;
         scan_stat = 5;
         break;
        }
     else if (!inst->lbchars && lb_cnt == 0 && *ps == '\n') {
         scan_stat = 0;
         break;
        }
        }
         case 2: {
         if (icnt <= 0) {
         goto out;
        }
        }
         case 3: {
        }
         case 4: {
         ps++, icnt--;
        }
        }
        }
        out:  *in_pp = (const char *)ps;
        }
         static php_conv_err_t php_conv_qprint_decode_ctor(php_conv_qprint_decode *inst, const char *lbchars, size_t lbchars_len, int lbchars_dup, int persistent) {
         inst->_super.convert_op = (php_conv_convert_func) php_conv_qprint_decode_convert;
        }
         typedef struct _php_convert_filter {
         php_conv *cd;
        }
         php_convert_filter;
         static php_conv *php_conv_open(int conv_mode, const HashTable *options, int persistent) {
         php_conv *retval = ((void *)0);
         switch (conv_mode) {
         case 4: {
         char *lbchars = ((void *)0);
         size_t lbchars_len;
         if (lbchars != ((void *)0)) {
         if (php_conv_qprint_decode_ctor((php_conv_qprint_decode *)retval, lbchars, lbchars_len, 1, persistent)) {
        }
        }
        }
        }
        }
         static int php_convert_filter_ctor(php_convert_filter *inst,  int conv_mode, HashTable *conv_opts,  const char *filtername, int persistent) {
         if ((inst->cd = php_conv_open(conv_mode, conv_opts, persistent)) == ((void *)0)) {
        }
        }
         static php_stream_filter_status_t strfilter_convert_filter(  php_stream *stream,  php_stream_filter *thisfilter,  php_stream_bucket_brigade *buckets_in,  php_stream_bucket_brigade *buckets_out,  size_t *bytes_consumed,  int flags  ) {
        }
         static void strfilter_convert_dtor(php_stream_filter *thisfilter ) {
        }
         static php_stream_filter_ops strfilter_convert_ops = {
         strfilter_convert_filter,  strfilter_convert_dtor,  "convert.*" };
         static php_stream_filter *strfilter_convert_create(const char *filtername, zval *filterparams, int persistent ) {
         php_convert_filter *inst;
         int conv_mode = 0;
         if (php_convert_filter_ctor(inst, conv_mode,   (filterparams != ((void *)0) ? (*filterparams).value.ht : ((void *)0)),   filtername, persistent) != 0) {
        }
        }
         static php_stream_filter_factory strfilter_convert_factory = {
         strfilter_convert_create };
         static const struct {
         php_stream_filter_ops *ops;
         php_stream_filter_factory *factory;
        }
         standard_filters[] = {
         {
       &strfilter_convert_ops, &strfilter_convert_factory }
        };
         int zm_startup_standard_filters(int type, int module_number ) {
         int i;
         for (i = 0;
        standard_filters[i].ops;
        i++) {
        }
        }