From: Martin Jambor Date: Tue, 19 Dec 2017 10:43:00 +0000 (+0100) Subject: Added testcase for PR 83329 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=821bbcaf130e74568aa6d2e928961d23530a8717;p=gcc.git Added testcase for PR 83329 2017-12-19 Martin Jambor PR tree-optimization/83329 * gcc.dg/tree-ssa/pr83329.c: New test From-SVN: r255814 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5c735b0c039..02b45eb0078 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-19 Martin Jambor + + PR tree-optimization/83329 + * gcc.dg/tree-ssa/pr83329.c: New test + 2017-12-19 Paolo Carlini PR c++/79490 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr83329.c b/gcc/testsuite/gcc.dg/tree-ssa/pr83329.c new file mode 100644 index 00000000000..feabc005648 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr83329.c @@ -0,0 +1,14 @@ +/* { dg-do compile } */ +/* { dg-options "-O3" } */ + +typedef struct { + long a; + long b; +} c; + +c *d; +char e, f, g; +void h() { + d[0].a = &g - &f; + d[0].b = &e - &f; +}