aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/destructor-exception-spec.cpp
blob: e111ba0ba8e5224d7a33e04c49b15ddb7d032fab (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// RUN: %clang_cc1 -emit-llvm-only %s -std=c++11
// RUN: %clang_cc1 -emit-llvm-only -fno-use-cxa-atexit %s -std=c++11
// RUN: %clang_cc1 -cxx-abi microsoft -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;
}