aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr69117.c23
2 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 250f55f..52f5b1e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-01-15 Richard Biener <rguenther@suse.de>
+
+ PR tree-optimization/69117
+ * gcc.dg/torture/pr69117.c: New testcase.
+
2015-01-14 Ryan Burn <contact@rnburn.com>
PR c++/69048
diff --git a/gcc/testsuite/gcc.dg/torture/pr69117.c b/gcc/testsuite/gcc.dg/torture/pr69117.c
new file mode 100644
index 0000000..fbf82c1
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr69117.c
@@ -0,0 +1,23 @@
+/* { dg-do run } */
+/* { dg-additional-options "-fstrict-aliasing" } */
+
+int a, c, *d = &c, **e = &d, *g = &a;
+static int ***b, **f = &d;
+
+int
+main ()
+{
+ **f = 0;
+ int ****h = 0;
+ if (c)
+ {
+ *h = &e;
+ ***b = 0;
+ }
+ *e = g;
+
+ if (d != &a)
+ __builtin_abort ();
+
+ return 0;
+}