annotate clang/test/SemaTemplate/crash-unparsed-exception.cpp @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify -fcxx-exceptions -fexceptions %s
anatofuz
parents:
diff changeset
2 // expected-no-diagnostics
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 struct A {
anatofuz
parents:
diff changeset
5 virtual ~A();
anatofuz
parents:
diff changeset
6 };
anatofuz
parents:
diff changeset
7 template <class>
anatofuz
parents:
diff changeset
8 struct B {};
anatofuz
parents:
diff changeset
9 struct C {
anatofuz
parents:
diff changeset
10 template <typename>
anatofuz
parents:
diff changeset
11 struct D {
anatofuz
parents:
diff changeset
12 ~D() throw();
anatofuz
parents:
diff changeset
13 };
anatofuz
parents:
diff changeset
14 struct E : A {
anatofuz
parents:
diff changeset
15 D<int> d;
anatofuz
parents:
diff changeset
16 };
anatofuz
parents:
diff changeset
17 B<int> b;
anatofuz
parents:
diff changeset
18 };