diff options
author | Adam Nemet <anemet@caviumnetworks.com> | 2007-06-20 18:17:20 +0000 |
---|---|---|
committer | Adam Nemet <nemet@gcc.gnu.org> | 2007-06-20 18:17:20 +0000 |
commit | 034bfe7a9f51a82d1eadeb037791e5f467395eba (patch) | |
tree | 72e4df71039c8ebc9e1c367687dddb02b39393eb | |
parent | 1c5ae9624cd41a2d60ded14ff05db2eb83d6f4ce (diff) | |
download | gcc-034bfe7a9f51a82d1eadeb037791e5f467395eba.zip gcc-034bfe7a9f51a82d1eadeb037791e5f467395eba.tar.gz gcc-034bfe7a9f51a82d1eadeb037791e5f467395eba.tar.bz2 |
re PR tree-optimization/25737 (ACATS c974001 c974013 hang with struct aliasing)
PR tree-optimization/25737
* testsuite/gcc.dg/tree-ssa/alias-14.c: New test.
From-SVN: r125889
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/alias-14.c | 20 |
2 files changed, 25 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f525870..4130d6a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2007-06-20 Adam Nemet <anemet@caviumnetworks.com> + + PR tree-optimization/25737 + * testsuite/gcc.dg/tree-ssa/alias-14.c: New test. + 2007-06-20 Hui-May Chang <hm.chang@apple.com> * gcc.target/i386/large-size-array-3.c: New. diff --git a/gcc/testsuite/gcc.dg/tree-ssa/alias-14.c b/gcc/testsuite/gcc.dg/tree-ssa/alias-14.c new file mode 100644 index 0000000..a1216b7 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/alias-14.c @@ -0,0 +1,20 @@ +/* { dg-do run } */ +/* { dg-options "-O2" } */ + +struct s +{ + long long a:12; + long long b:12; + long long c:40; +}; + +struct s s, *p = &s; + +int +main () +{ + p->a = 1; + s.a = 0; + s.b = 0; + return p->a + s.b; +} |