Commit 2cb207f7 by Richard Guenther Committed by Richard Biener

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
parent 92140ff9
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.
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment