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 /gcc/testsuite/gcc.dg/tree-ssa/alias-14.c | |
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
Diffstat (limited to 'gcc/testsuite/gcc.dg/tree-ssa/alias-14.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/alias-14.c | 20 |
1 files changed, 20 insertions, 0 deletions
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; +} |