aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/961203-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.c-torture/compile/961203-1.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.c-torture/compile/961203-1.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/961203-1.c b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/961203-1.c
new file mode 100644
index 000000000..989085843
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/961203-1.c
@@ -0,0 +1,22 @@
+/* The structure is too large for the xstormy16 - won't fit in 16
+ bits. */
+/* { dg-do assemble } */
+
+#if __INT_MAX__ >= 2147483647L
+struct s {
+ char a[0x32100000];
+ int x:30, y:30;
+};
+
+int
+main ()
+{
+ struct s* p;
+
+ p = (struct s*) 0;
+ if (p->x == p->y)
+ exit (1);
+}
+#else
+int g;
+#endif