struct-ret-3.c: Adjust testcase to make stack readable and writable again before...
authorRichard Guenther <rguenther@suse.de>
Sun, 13 Jan 2008 19:50:04 +0000 (19:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 13 Jan 2008 19:50:04 +0000 (19:50 +0000)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/struct-ret-3.c

index 521407a..7909ad9 100644 (file)
@@ -1,5 +1,10 @@
 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
        * gcc.dg/noncompile/incomplete-4.c: New testcase.
 
index edb259c..4a603cb 100644 (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;
 }