diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/20070529-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/20070529-1.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20070529-1.c b/gcc/testsuite/gcc.c-torture/compile/20070529-1.c new file mode 100644 index 000000000..f34add2b6 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/20070529-1.c @@ -0,0 +1,16 @@ +/* ICE in chrec_fold_plus_poly_poly. */ + +typedef unsigned short __u16; +typedef unsigned int u32; +typedef __u16 __be16; +struct hfs_extent { + __be16 count; +}; +int hfs_free_fork( int type) +{ + u32 total_blocks, blocks, start; + struct hfs_extent *extent; + int res, i; + for (i = 0; i < 3; extent++, i++) + blocks += __fswab16((( __u16)(__be16)(extent[i].count))); +} |