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:
parent
e76d7cc71d
commit
226e8d20a1
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user