xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenCXX/destructor-exception-spec.cpp (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only %s -std=c++11
2*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm-only -fno-use-cxa-atexit %s -std=c++11
3*0a6a1f1dSLionel Sambuc // RUN: %clang_cc1 -triple %ms_abi_triple -fno-rtti -emit-llvm-only %s -std=c++11
4f4a2713aSLionel Sambuc 
5f4a2713aSLionel Sambuc // PR13479: don't crash with -fno-exceptions.
6f4a2713aSLionel Sambuc namespace {
7f4a2713aSLionel Sambuc   struct SchedulePostRATDList {
8f4a2713aSLionel Sambuc     virtual ~SchedulePostRATDList();
9f4a2713aSLionel Sambuc   };
10f4a2713aSLionel Sambuc 
~SchedulePostRATDList()11f4a2713aSLionel Sambuc   SchedulePostRATDList::~SchedulePostRATDList() {}
12f4a2713aSLionel Sambuc 
13f4a2713aSLionel Sambuc   SchedulePostRATDList Scheduler;
14f4a2713aSLionel Sambuc }
15