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
12namespace __cxxabiv1 {
13extern "C" {
14_LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN
15void __cxa_pure_virtual(void) {
16 abort_message(format: "Pure virtual function called!");
17}
18
19_LIBCXXABI_FUNC_VIS _LIBCXXABI_NORETURN
20void __cxa_deleted_virtual(void) {
21 abort_message(format: "Deleted virtual function called!");
22}
23} // extern "C"
24} // abi
25