aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr69117.c23
1 files changed, 23 insertions, 0 deletions
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;
+}