blob: bdcf6878734f8a9c20e5d32fd94d7b4fad92fa48 [file] [log] [blame]
Howard Hinnant782d6982011-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
21void __cxa_pure_virtual(void) {
22 fputs("Pure virtual function called!\n", stderr);
23 abort();
24}
25
26void __cxa_deleted_virtual(void) {
27 fputs("Deleted virtual function called!\n", stderr);
28 abort();
29}
30
31} // extern "C"
32
33} // abi