blob: 617b355a6c696af4c0fecd0ce227b11b9b24cc8e [file] [log] [blame]
// 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);
}