From b1cd56a43da8bae4e2ab5d8f930753de2086912d Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 14 Nov 2020 13:53:55 +0100 Subject: [PATCH] Escape parameters in gcc.dg/torture/pta-ptrarith-1.c * gcc.dg/torture/pta-ptrarith-1.c: Escape parameters. --- gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c | 3 +++ 1 file changed, 3 insertions(+) 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) -- 2.30.2