summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr33696.c
blob: 97bbfe8bf433834c9861e0f0829a7beaed66430d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */

/* This used to ICE with type-checking enabled.  */

typedef unsigned char uint8_t;
typedef unsigned int uint_least32_t;
extern int foo (long int __off);
void write (uint_least32_t chunk_len)
{
     uint8_t tmp[4];
     foo (-(long)chunk_len - sizeof(tmp));
}