diff options
author | Jason Merrill <merrill@gnu.org> | 1994-10-21 19:14:08 +0000 |
---|---|---|
committer | Jason Merrill <merrill@gnu.org> | 1994-10-21 19:14:08 +0000 |
commit | efc955c77ff5f2c792daf174f3b68e3ea793b51c (patch) | |
tree | 74749ff8273a6dbaf0ee158b2d15ea20eeed110e /gcc/libgcc2.c | |
parent | ea5df1fd4c576ebd7e900d70575202c0a706ce67 (diff) | |
download | gcc-efc955c77ff5f2c792daf174f3b68e3ea793b51c.zip gcc-efc955c77ff5f2c792daf174f3b68e3ea793b51c.tar.gz gcc-efc955c77ff5f2c792daf174f3b68e3ea793b51c.tar.bz2 |
(LIB2FUNCS): Add _pure.
From-SVN: r8333
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r-- | gcc/libgcc2.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index 4e46683..63a7114 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -2287,3 +2287,13 @@ __register_exceptions (exception_table *table) exception_table_list = node; } #endif /* L_eh */ + +#ifdef L_pure +#define MESSAGE "pure virtual method called\n" +void +__pure_virtual () +{ + write (2, MESSAGE, sizeof (MESSAGE) - 1); + _exit (-1); +} +#endif |