diff options
author | Jason Merrill <jason@gcc.gnu.org> | 2002-05-13 04:00:49 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2002-05-13 04:00:49 -0400 |
commit | aaec0464eef3eff3e9756c403478a512e59fee92 (patch) | |
tree | dc02c0b53fb0eb9aeb98fd2b1b32b7af3be68de5 /gcc | |
parent | f63ab951732ba679174976e269fe8697742ebbcd (diff) | |
download | gcc-aaec0464eef3eff3e9756c403478a512e59fee92.zip gcc-aaec0464eef3eff3e9756c403478a512e59fee92.tar.gz gcc-aaec0464eef3eff3e9756c403478a512e59fee92.tar.bz2 |
rtti.c (emit_tinfo_decl): Call import_export_decl.
* rtti.c (emit_tinfo_decl): Call import_export_decl.
* decl2.c (import_export_decl): Set DECL_NOT_REALLY_EXTERN on
tinfo decls by default. Don't mess with the builtins.
From-SVN: r53417
Diffstat (limited to 'gcc')
-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 0000000..4535296 --- /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 {typeinfo for A[: \t\n]} } } |