struct-ret-3.c: Adjust testcase to make stack readable and writable again before exiting.

2008-01-13  Richard Guenther  <rguenther@suse.de>

        * gcc.dg/struct-ret-3.c: Adjust testcase to make stack
        readable and writable again before exiting.

From-SVN: r131509
This commit is contained in:
Richard Guenther 2008-01-13 19:50:04 +00:00 committed by Richard Biener
parent 92140ff9cc
commit 2cb207f7f3
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-01-13 Richard Guenther <rguenther@suse.de>
* gcc.dg/struct-ret-3.c: Adjust testcase to make stack
readable and writable again before exiting.
2008-01-13 Richard Guenther <rguenther@suse.de>
PR middle-end/34601

View File

@ -90,5 +90,9 @@ int main(void)
u->dp.pDictRidderInfo = &u->di;
Initialize(&u->o, 0);
mprotect(u->c1, 4096, PROT_READ|PROT_WRITE);
mprotect(u->c2, 4096, PROT_READ|PROT_WRITE);
mprotect(u->c3, 4096, PROT_READ|PROT_WRITE);
return 0;
}