From: Tom de Vries Date: Sun, 6 Aug 2017 07:54:29 +0000 (+0000) Subject: Fix call arguments mismatch in gcc.dg/torture/pr78218.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fbcf07529ddca74582341e8cf606b64578190de;p=gcc.git Fix call arguments mismatch in gcc.dg/torture/pr78218.c 2017-08-06 Tom de Vries PR testsuite/81731 * gcc.dg/torture/pr78218.c (struct v): New type, factored type out of variable 'a' definition. (b): Remove unused variable. (gp): New variable. (check): Add parameter corresponding to call in main, and handle. From-SVN: r250896 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e6064d2f9e0..8915a2b40a5 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2017-08-06 Tom de Vries + + PR testsuite/81731 + * gcc.dg/torture/pr78218.c (struct v): New type, factored type out of + variable 'a' definition. + (b): Remove unused variable. + (gp): New variable. + (check): Add parameter corresponding to call in main, and handle. + 2017-08-04 Paolo Carlini PR c++/79790 diff --git a/gcc/testsuite/gcc.dg/torture/pr78218.c b/gcc/testsuite/gcc.dg/torture/pr78218.c index b3e2892429d..fd6ddc9d90d 100644 --- a/gcc/testsuite/gcc.dg/torture/pr78218.c +++ b/gcc/testsuite/gcc.dg/torture/pr78218.c @@ -1,15 +1,18 @@ /* { dg-do run } */ -struct +struct v { int v; -} a[2]; +}; -int b; +struct v a[2]; + +struct v *gp; void __attribute__((noinline,noclone)) -check () +check (struct v *p) { + gp = p; if (a[0].v != 1) __builtin_abort (); }