projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
520d5ad
)
Escape parameters in gcc.dg/torture/pta-ptrarith-1.c
author
Jan Hubicka
<jh@suse.cz>
Sat, 14 Nov 2020 12:53:55 +0000
(13:53 +0100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c
b/gcc/testsuite/gcc.dg/torture/pta-ptrarith-1.c
index 99a548840df48c8f26e8b75778bfa286031ea2d7..85b68068b121cde20a5e2c40daad70d59d6c73c3 100644
(file)
--- 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)