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:
parent
ed3fc22193
commit
db08384acf
@ -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,
|
||||
|
33
gcc/testsuite/g++.dg/eh/table.C
Normal file
33
gcc/testsuite/g++.dg/eh/table.C
Normal 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;
|
||||
}
|
Loading…
Reference in New Issue
Block a user