diff options
Diffstat (limited to 'gcc/testsuite/g++.dg/abi/rtti1.C')
-rw-r--r-- | gcc/testsuite/g++.dg/abi/rtti1.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/abi/rtti1.C b/gcc/testsuite/g++.dg/abi/rtti1.C new file mode 100644 index 000000000..f17d88aad --- /dev/null +++ b/gcc/testsuite/g++.dg/abi/rtti1.C @@ -0,0 +1,13 @@ +// Test that we don't emit the type_info for a polymorphic class other than +// with the vtable. + +struct A { + virtual ~A(); +}; + +void f () +{ + throw A(); +} + +// { dg-final { scan-assembler-dem-not {\ntypeinfo for A[: \t\n]} } } |