1 #undef NDEBUG
2 #include <assert.h>
3
4 extern "C" void __cxa_pure_virtual() {
5 // We can't call __libc_format_log from libstdc++ because it's hidden and in libc, so cheat.
6 assert(!"Pure virtual function called. Are you calling virtual methods from a destructor?");
7 /* NOTREACHED */
8 }
9