Commit 81c3e25a by Nathan Froyd

20051113-1.c (main): Use the correct type when allocating and initializing a flexible array.

	* gcc.c-torture/execute/20051113-1.c (main): Use the correct type
	when allocating and initializing a flexible array.

From-SVN: r126156
parent 6d409e8a
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
......@@ -99,7 +104,6 @@
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
......@@ -135,6 +139,7 @@
PR c++/32111
* g++.dg/other/friend5.C: New test.
>>>>>>> .r126155
2007-06-25 Paul Thomas <pault@gcc.gnu.org>
PR fortran/32464
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment