llvm-for-llvmta/tools/clang/test/SemaTemplate/crash-unparsed-exception.cpp

19 lines
293 B
C++
Raw Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s
// expected-no-diagnostics
struct A {
virtual ~A();
};
template <class>
struct B {};
struct C {
template <typename>
struct D {
~D() throw();
};
struct E : A {
D<int> d;
};
B<int> b;
};