Fariborz Jahanian | c87efbd | 2009-08-25 16:37:49 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
| 2 | |
| 3 | template<typename A> class s0 { |
| 4 | |
| 5 | template<typename B> class s1 : public s0<A> { |
| 6 | ~s1() {} |
| 7 | s0<A> ms0; |
| 8 | }; |
| 9 | |
| 10 | }; |
| 11 | |
Douglas Gregor | 31658df | 2009-11-20 19:58:21 +0000 | [diff] [blame] | 12 | struct Incomplete; |
Fariborz Jahanian | c87efbd | 2009-08-25 16:37:49 +0000 | [diff] [blame] | 13 | |
Douglas Gregor | 31658df | 2009-11-20 19:58:21 +0000 | [diff] [blame] | 14 | template<typename T> |
| 15 | void destroy_me(T me) { |
| 16 | me.~T(); |
| 17 | } |
| 18 | |
| 19 | template void destroy_me(Incomplete*); |