wo_prof_global_var.c: Initialize array.

* gcc.dg/struct/wo_prof_global_var.c: Initialize array.
	* gcc.dg/struct/wo_prof_malloc_size_var.c: Ditto.
	* gcc.dg/struct/w_prof_local_var.c: Ditto.
	* gcc.dg/struct/w_prof_global_var.c: Ditto.
	* gcc.dg/struct/wo_prof_local_var.c: Ditto.

From-SVN: r134572
This commit is contained in:
Steve Ellcey 2008-04-22 23:31:58 +00:00 committed by Steve Ellcey
parent e76d7cc71d
commit 226e8d20a1
6 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,11 @@
2008-04-22 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/struct/wo_prof_global_var.c: Initialize array.
* gcc.dg/struct/wo_prof_malloc_size_var.c: Ditto.
* gcc.dg/struct/w_prof_local_var.c: Ditto.
* gcc.dg/struct/w_prof_global_var.c: Ditto.
* gcc.dg/struct/wo_prof_local_var.c: Ditto.
2008-04-22 Jason Merrill <jason@redhat.com>
PR c++/35316

View File

@ -15,6 +15,10 @@ main ()
int i, sum;
p = malloc (N * sizeof (str_t));
for (i = 0; i < N; i++)
p[i].b = i;
for (i = 0; i < N; i++)
p[i].a = p[i].b + 1;

View File

@ -13,6 +13,10 @@ main ()
int i, sum;
str_t * p = malloc (N * sizeof (str_t));
for (i = 0; i < N; i++)
p[i].b = i;
for (i = 0; i < N; i++)
p[i].a = p[i].b + 1;

View File

@ -18,6 +18,10 @@ main ()
int i, sum;
p = malloc (N * sizeof (str_t));
for (i = 0; i < N; i++)
p[i].b = i;
for (i = 0; i < N; i++)
p[i].a = p[i].b + 1;

View File

@ -16,6 +16,10 @@ main ()
int i, sum;
str_t * p = malloc (N * sizeof (str_t));
for (i = 0; i < N; i++)
p[i].b = i;
for (i = 0; i < N; i++)
p[i].a = p[i].b + 1;

View File

@ -21,6 +21,9 @@ main ()
if (p == 0)
return 0;
for (i = 0; i < N; i++)
p[i].b = i;
for (i = 0; i < N; i++)
p[i].a = p[i].b + 1;