OSDN Git Service

PR middle-end/27282
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 2006 17:57:03 +0000 (17:57 +0000)
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Apr 2006 17:57:03 +0000 (17:57 +0000)
        * 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr27282.c [new file with mode: 0644]

index e3f19e0..90b5b26 100644 (file)
@@ -1,3 +1,8 @@
+2006-04-26  David Edelsohn  <edelsohn@gnu.org>
+
+       PR middle-end/27282
+       * gcc.c-torture/compile/pr27282.c: New test.
+
 2006-04-26  Jakub Jelinek  <jakub@redhat.com>
 
        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 (file)
index 0000000..ab66366
--- /dev/null
@@ -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;
+}
+