[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaTemplate / crash-unparsed-exception.cpp
blob3137d3fa197c538d2eb7ccc6ad8871f2fed7b725
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s
2 // expected-no-diagnostics
4 struct A {
5 virtual ~A();
6 };
7 template <class>
8 struct B {};
9 struct C {
10 template <typename>
11 struct D {
12 ~D() throw();
14 struct E : A {
15 D<int> d;
17 B<int> b;