gcc/libstdc++/pure.c
Richard Henderson 9ab916b8ed 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
2000-10-07 12:21:05 -07:00

17 lines
383 B
C

#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 ();
}