Escape parameters in gcc.dg/torture/pta-ptrarith-1.c

* gcc.dg/torture/pta-ptrarith-1.c: Escape parameters.
This commit is contained in:
Jan Hubicka 2020-11-14 13:53:55 +01:00
parent 520d5ad337
commit b1cd56a43d
1 changed files with 3 additions and 0 deletions

View File

@ -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)