table.C: New.

2006-01-18  Eric Christopher  <echristo@apple.com>

        * g++.dg/eh/table.C: New.

From-SVN: r109931
This commit is contained in:
Eric Christopher 2006-01-19 00:26:20 +00:00 committed by Eric Christopher
parent ed3fc22193
commit db08384acf
2 changed files with 37 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2006-01-18 Eric Christopher <echristo@apple.com>
* g++.dg/eh/table.C: New.
2006-01-18 DJ Delorie <dj@redhat.com>
* gcc.dg/Werror-1.c, gcc.dg/Werror-2.c, gcc.dg/Werror-3.c,

View File

@ -0,0 +1,33 @@
// { dg-do compile { target *-*-darwin* } }
// { dg-final { scan-assembler "GCC_except_table0" } }
void needed();
void unneeded();
class Bar
{
public:
Bar() {}
virtual ~Bar() {}
void unneeded();
};
void needed()
{
Bar b;
}
//#if 0
void unneeded()
{
Bar b;
b.unneeded();
}
//#endif
int main()
{
needed();
return 0;
}