llvm-for-llvmta/tools/clang/test/CodeGenCXX/destructor-exception-spec.cpp

15 lines
478 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -std=c++11
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only -fno-use-cxa-atexit %s -std=c++11
// RUN: %clang_cc1 -triple %ms_abi_triple -fno-rtti -emit-llvm-only %s -std=c++11
// PR13479: don't crash with -fno-exceptions.
namespace {
struct SchedulePostRATDList {
virtual ~SchedulePostRATDList();
};
SchedulePostRATDList::~SchedulePostRATDList() {}
SchedulePostRATDList Scheduler;
}