diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/pr33696.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/gcc.dg/pr33696.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/pr33696.c b/gcc-4.9/gcc/testsuite/gcc.dg/pr33696.c new file mode 100644 index 000000000..97bbfe8bf --- /dev/null +++ b/gcc-4.9/gcc/testsuite/gcc.dg/pr33696.c @@ -0,0 +1,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)); +} + |