pr26421.c: Fix testcase to force struct decomposition.
authorRichard Guenther <rguenther@suse.de>
Tue, 28 Feb 2006 14:53:36 +0000 (14:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 28 Feb 2006 14:53:36 +0000 (14:53 +0000)
2006-02-28  Richard Guenther  <rguenther@suse.de>

        * gcc.dg/tree-ssa/pr26421.c: Fix testcase to force struct
        decomposition.

From-SVN: r111566

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr26421.c

index f1ce569..e0af455 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-28  Richard Guenther  <rguenther@suse.de>
+
+       * gcc.dg/tree-ssa/pr26421.c: Fix testcase to force struct
+       decomposition.
+
 2006-02-28  Thomas Koenig  <Thomas.Koenig@online.de>
 
        * scalar_mask_1.f90:  Add tests for maxloc with scalar mask.
index edb3685..ff48b61 100644 (file)
@@ -8,11 +8,12 @@ typedef struct {
 } Foo;
 
 void bar(Foo*);
-void foo(void)
+int foo(void)
 {
   Foo a;
   a.i = 1;
   bar(&a);
+  return a.i;
 }
 
 /* { dg-final { scan-tree-dump-times "V_MAY_DEF" 1 "alias1" } } */