From: dje Date: Wed, 26 Apr 2006 17:57:03 +0000 (+0000) Subject: PR middle-end/27282 X-Git-Url: http://git.sourceforge.jp/view?p=pf3gnuchains%2Fgcc-fork.git;a=commitdiff_plain;h=e5ab04e30263327b9299ac5d83e1b8687cda302b PR middle-end/27282 * gcc.c-torture/compile/pr27282.c: New test git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@113278 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e3f19e04c62..90b5b264fda 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-04-26 David Edelsohn + + PR middle-end/27282 + * gcc.c-torture/compile/pr27282.c: New test. + 2006-04-26 Jakub Jelinek PR middle-end/26913 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 00000000000..ab663665064 --- /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; +} +