Escape parameters in gcc.dg/torture/pta-ptrarith-1.c
authorJan Hubicka <jh@suse.cz>
Sat, 14 Nov 2020 12:53:55 +0000 (13:53 +0100)
committerJan Hubicka <jh@suse.cz>
Sat, 14 Nov 2020 12:53:55 +0000 (13:53 +0100)
* gcc.dg/torture/pta-ptrarith-1.c: Escape parameters.

gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c

index 99a548840df48c8f26e8b75778bfa286031ea2d7..85b68068b121cde20a5e2c40daad70d59d6c73c3 100644 (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)