summaryrefslogtreecommitdiff
path: root/test/CodeGenCXX/destructor-crash.cpp
blob: 43291986514d94235e028d5ee8904048afcbd773 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// RUN: %clang_cc1 %s -emit-llvm -std=c++11 -o %t

struct A {
  ~A();
};

struct B {
  A a;
};

struct C {
  union {
    B b;
  };

  ~C() noexcept;
};

C::~C() noexcept {}