blob: affb80fcc85db4a512752a63203bce16626d3a0c [file] [log] [blame]
Elliott Hughes52d62332012-07-27 17:40:29 -07001#undef NDEBUG
2#include <assert.h>
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08003
Elliott Hughes52d62332012-07-27 17:40:29 -07004extern "C" void __cxa_pure_virtual() {
5 // We can't call __libc_android_log_write from libstdc++ because it's private, so cheat.
6 assert(!"Pure virtual function called. Are you calling virtual methods from a destructor?");
7 /* NOTREACHED */
The Android Open Source Project1dc9e472009-03-03 19:28:35 -08008}