mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 09:54:46 +08:00
17 lines
383 B
C
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 ();
|
||
|
}
|