diff options
author | Richard Henderson <rth@cygnus.com> | 2000-10-07 12:21:05 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2000-10-07 12:21:05 -0700 |
commit | 9ab916b8ed43541ad87ded43671f473671370b0b (patch) | |
tree | 736e872f7a5c1bf967c16af7a0ccf922bc810cb2 /libstdc++/pure.c | |
parent | 58ad9ee0af7cb9771106302bf3e4447aab9bb09e (diff) | |
download | gcc-9ab916b8ed43541ad87ded43671f473671370b0b.zip gcc-9ab916b8ed43541ad87ded43671f473671370b0b.tar.gz gcc-9ab916b8ed43541ad87ded43671f473671370b0b.tar.bz2 |
del_op.cc, [...]: New files.
* del_op.cc, del_opnt.cc, del_opv.cc, del_opvnt.cc: New files.
* exception.cc, new_handler.cc, new_op.cc, new_opnt.cc: New files.
* new_opv.cc, new_opvnt.cc, tinfo.cc, tinfo2.cc, vec.cc: New files.
* cxxabi.h, exception, new, new.h, typeinfo, pure.c: New files.
* tinfo.hP: New file.
* Makefile.in (OBJS, HEADERS): Add new files.
* configure.in (XCXXINCLUDES): Add ../include and ../gcc.
From-SVN: r36780
Diffstat (limited to 'libstdc++/pure.c')
-rw-r--r-- | libstdc++/pure.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/libstdc++/pure.c b/libstdc++/pure.c new file mode 100644 index 0000000..abaed59 --- /dev/null +++ b/libstdc++/pure.c @@ -0,0 +1,16 @@ +#include <stdio.h> + +#ifdef __GNU_LIBRARY__ + /* Avoid forcing the library's meaning of `write' on the user program + by using the "internal" name (for use within the library) */ +#define write(fd, buf, n) __write((fd), (buf), (n)) +#endif + +#define MESSAGE "pure virtual method called\n" + +void +__pure_virtual (void) +{ + write (2, MESSAGE, sizeof (MESSAGE) - 1); + __terminate (); +} |