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
+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 ();
}