Eli Friedman | c26a9ae | 2010-06-03 23:31:53 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -emit-llvm-only -verify -fexceptions |
Eli Friedman | 5ed9b93 | 2010-06-03 20:39:03 +0000 | [diff] [blame] | 2 | // PR7281 |
3 | |||||
4 | class A { | ||||
5 | public: | ||||
6 | ~A(); | ||||
7 | }; | ||||
8 | class B : public A { | ||||
9 | void ice_throw(); | ||||
10 | }; | ||||
11 | void B::ice_throw() { | ||||
12 | throw *this; | ||||
13 | } |