mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 16:00:58 +08:00
New test from GNATS.
From-SVN: r44801
This commit is contained in:
parent
f841565e80
commit
5a99c3a649
25
gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
Normal file
25
gcc/testsuite/g++.dg/eh/omit-frame-pointer.C
Normal 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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user