blob: e3450d12b1ea64e07d9040da20465acfe545ddbb [file] [log] [blame]
Howard Hinnant92827182011-05-24 22:01:16 +00001//===-------------------------- cxa_virtual.cpp ---------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "cxxabi.h"
11
12#include <stdio.h>
13#include <stdlib.h>
14
15namespace __cxxabiv1
16{
17
18extern "C"
19{
20
Marshall Clow4c2acbc2011-06-03 02:04:41 +000021LIBCXXABI_NORETURN
Howard Hinnant92827182011-05-24 22:01:16 +000022void __cxa_pure_virtual(void) {
23 fputs("Pure virtual function called!\n", stderr);
24 abort();
25}
26
Marshall Clow4c2acbc2011-06-03 02:04:41 +000027LIBCXXABI_NORETURN
Howard Hinnant92827182011-05-24 22:01:16 +000028void __cxa_deleted_virtual(void) {
29 fputs("Deleted virtual function called!\n", stderr);
30 abort();
31}
32
33} // extern "C"
34
35} // abi