diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/compile/pr27282.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/compile/pr27282.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/pr27282.c b/gcc/testsuite/gcc.c-torture/compile/pr27282.c new file mode 100644 index 000000000..ab6636650 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/compile/pr27282.c @@ -0,0 +1,17 @@ +/* This test used to ICE on PowerPC at -O due to combine GEN_INT bug. */ +typedef struct _ColRowInfo ColRowInfo; +typedef struct { } +GnmSheetRange; +struct _ColRowInfo +{ + float size_pts; + unsigned margin_a:3; + unsigned margin_b:3; + unsigned visible:1; +}; +colrow_equal (ColRowInfo const *a, ColRowInfo const *b) +{ + return a->size_pts == b->size_pts && a->margin_a == b->margin_a + && a->visible == b->visible; +} + |