summaryrefslogtreecommitdiffstats
path: root/libstdc++/src/pure_virtual.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++/src/pure_virtual.cpp')
-rw-r--r--libstdc++/src/pure_virtual.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/libstdc++/src/pure_virtual.cpp b/libstdc++/src/pure_virtual.cpp
new file mode 100644
index 0000000..663c1e9
--- /dev/null
+++ b/libstdc++/src/pure_virtual.cpp
@@ -0,0 +1,10 @@
+
+#include <stdio.h>
+#include <stdlib.h>
+
+extern "C" void __cxa_pure_virtual()
+{
+ fprintf(stderr, "Pure virtual function called. Are you calling virtual methods from a destructor?\n");
+ abort();
+}
+