summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20020319-1.c
blob: be5b9c2fecec85b048f3189e66408d061a419321 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* This testcase ICEd in combine.c:do_SUBST() self-test for sign-extended
CONST_INT because expr.c:expand_expr() was not sign-extending array index
into constant strings.  */

typedef unsigned char uch;
extern uch outbuf[];
extern unsigned outcnt;

extern void flush_outbuf (void);

int zip(void)
{
  outcnt = 0;

    {outbuf[outcnt++]=(uch)("\037\213"[0]); if (outcnt==16384) flush_outbuf();};
    {outbuf[outcnt++]=(uch)("\037\213"[1]); if (outcnt==16384) flush_outbuf();};

  return 0;
}