Commit 8fbcf075 by Tom de Vries Committed by Tom de Vries

Fix call arguments mismatch in gcc.dg/torture/pr78218.c

2017-08-06  Tom de Vries  <tom@codesourcery.com>

	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
parent 366d1ec8
2017-08-06 Tom de Vries <tom@codesourcery.com>
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 <paolo.carlini@oracle.com>
PR c++/79790
......
/* { 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 ();
}
......
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