Anders Carlsson | abea951 | 2011-02-28 00:40:07 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify -fcxx-exceptions -fexceptions |
Andy Gibbs | 8e8fb3b | 2012-10-19 12:44:48 +0000 | [diff] [blame] | 2 | // expected-no-diagnostics |
Eli Friedman | 5ed9b93 | 2010-06-03 20:39:03 +0000 | [diff] [blame] | 3 | // PR7281 |
4 | |||||
5 | class A { | ||||
6 | public: | ||||
7 | ~A(); | ||||
8 | }; | ||||
9 | class B : public A { | ||||
10 | void ice_throw(); | ||||
11 | }; | ||||
12 | void B::ice_throw() { | ||||
13 | throw *this; | ||||
14 | } |