From: Jan Hubicka Date: Sat, 14 Nov 2020 12:53:55 +0000 (+0100) Subject: Escape parameters in gcc.dg/torture/pta-ptrarith-1.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1cd56a43da8bae4e2ab5d8f930753de2086912d;p=gcc.git Escape parameters in gcc.dg/torture/pta-ptrarith-1.c * gcc.dg/torture/pta-ptrarith-1.c: Escape parameters. --- diff --git a/gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c b/gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c index 99a548840df..85b68068b12 100644 --- a/gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c +++ b/gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c @@ -6,11 +6,14 @@ struct Foo { int *p; }; +struct Foo *ff; + void __attribute__((noinline)) foo (void *p) { struct Foo *f = (struct Foo *)p - 1; *f->p = 0; + ff = f; } int bar (void)