OSDN Git Service

* gcc.c-torture/execute/20051113-1.c (main): Use the correct type
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Jun 2007 17:40:45 +0000 (17:40 +0000)
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 30 Jun 2007 17:40:45 +0000 (17:40 +0000)
when allocating and initializing a flexible array.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126156 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20051113-1.c

index 59237fa..2583a15 100644 (file)
@@ -1,3 +1,8 @@
+2007-06-30  Nathan Froyd  <froydnj@codesourcery.com>
+
+       * gcc.c-torture/execute/20051113-1.c (main): Use the correct type
+       when allocating and initializing a flexible array.
+
 2007-06-30  Daniel Franke  <franke.daniel@gmail.com>
 
        PR fortran/20373
        PR tree-opt/32417
        * gfortran.fortran-torture/compile/pr32417.f90: New test.
 
->>>>>>> .r126123
 2007-06-28  Dorit Nuzman  <dorit@il.ibm.com>
 
        * gcc.dg/vect/vect-iv-4.c: Test now passes on vect_pack_trunc
        PR c++/32111
        * g++.dg/other/friend5.C: New test.
 
+>>>>>>> .r126155
 2007-06-25  Paul Thomas  <pault@gcc.gnu.org>
 
        PR fortran/32464
index 6dbd1f0..6a289fd 100644 (file)
@@ -54,8 +54,8 @@ long long Sum2 (Struct3 *instrs)
     return count;
 }
 main() {
-  Struct3 *p = malloc (sizeof (int) + 3 * sizeof(Struct1));
-  memset(p, 0, sizeof(int) + 3*sizeof(Struct1));
+  Struct3 *p = malloc (sizeof (int) + 3 * sizeof(Union));
+  memset(p, 0, sizeof(int) + 3*sizeof(Union));
   p->Count = 3;
   p->List[0].a.Count = 555;
   p->List[1].a.Count = 999;