diff options
-rw-r--r-- | gcc/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/eh/table.C | 34 |
2 files changed, 40 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3d3d7797729..d2a9f1c322b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2006-01-18 Eric Christopher <echristo@apple.com> + + * g++.dg/eh/table.C: New. + 2006-01-17 Eric Christopher <echristo@apple.com> * g++.old-deja/g++.warn/impint.C: Add -Wconversion. @@ -131,7 +135,7 @@ PR fortran/21912 * gfortran.dg/array_constructor_4.f90: New test. - + * gfortran.dg/forall_1.f90: Set previously uninitialized variable. 2005-06-05 Mark Mitchell <mark@codesourcery.com> @@ -226,7 +230,7 @@ * gfortran.dg/implicit_5.f90: New test. 2005-06-01 Feng Wang <fengwang@nudt.edu.cn> - + PR fortran/20883 * gfortran/assign_4.f90: New test. * gfortran/assign_2.f90: Change compile to run. diff --git a/gcc/testsuite/g++.dg/eh/table.C b/gcc/testsuite/g++.dg/eh/table.C new file mode 100644 index 00000000000..2a85ca02380 --- /dev/null +++ b/gcc/testsuite/g++.dg/eh/table.C @@ -0,0 +1,34 @@ +// APPLE LOCAL file mainline +// { 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; +} |