mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 19:45:40 -04:00

Testcase provided, in the PR, by Christian Shelton and reduced by David Majnemer. PR: 23584 Differential Revision: http://reviews.llvm.org/D10508 Reviewed by: rnk llvm-svn: 240242
20 lines
173 B
C++
20 lines
173 B
C++
// 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 {}
|