aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/20061109-2.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/20061109-2.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/20061109-2.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/20061109-2.c b/gcc-4.9/gcc/testsuite/gcc.dg/20061109-2.c
new file mode 100644
index 000000000..30be434d5
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/20061109-2.c
@@ -0,0 +1,17 @@
+/* { dg-do compile } */
+/* { dg-options "-O1" } */
+
+/* This assignment might be implemented with a mem copy from the
+ literal pool with two BLKmode operands. This produced an ICE on S/390
+ since simplify_subreg was called for such a BLKmode operand. */
+
+struct a
+{
+ unsigned long b:24;
+};
+
+void
+foo (struct a *t)
+{
+ t->b = 32;
+}