Commit 85a0b075 by Jason Merrill

new

From-SVN: r26067
parent 51980de6
// Test that unwinding properly restores SP.
// Contributed by Jason Merrill <jason@cygnus.com>
int f (int i)
{
throw i;
}
int main ()
{
void *sp1 = __builtin_alloca (0);
try
{
f (0);
}
catch (int)
{
}
void *sp2 = __builtin_alloca (0);
return (sp1 != sp2);
}
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