New test from GNATS.

From-SVN: r44801
This commit is contained in:
Gabriel Dos Reis 2001-08-11 18:25:23 +00:00
parent f841565e80
commit 5a99c3a649

View File

@ -0,0 +1,25 @@
// { dg-do run }
// { dg-options -fomit-frame-pointer }
#include <iostream>
class Bug
{
};
int throw_bug()
{
throw Bug();
return 0;
}
int main()
{
try {
std::cout << throw_bug();
} catch (Bug bug) {
};
return 0;
}