aboutsummaryrefslogtreecommitdiff
path: root/test/SemaTemplate/crash-unparsed-exception.cpp
blob: 3137d3fa197c538d2eb7ccc6ad8871f2fed7b725 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// 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;
};