xref: /llvm-project/libcxxabi/src/cxa_virtual.cpp (revision e0737174f944e6da2d3052e57de04ad93503956b)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 #include "cxxabi.h"
10 #include "abort_message.h"
11 
12 namespace __cxxabiv1 {
13 extern "C" {
14 _LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN
15 void __cxa_pure_virtual(void) {
16   __abort_message("Pure virtual function called!");
17 }
18 
19 _LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN
20 void __cxa_deleted_virtual(void) {
21   __abort_message("Deleted virtual function called!");
22 }
23 } // extern "C"
24 } // abi
25