2009-12-16 04:14:24 +08:00
|
|
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
2009-08-26 00:37:49 +08:00
|
|
|
|
|
|
|
template<typename A> class s0 {
|
|
|
|
|
|
|
|
template<typename B> class s1 : public s0<A> {
|
|
|
|
~s1() {}
|
|
|
|
s0<A> ms0;
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
|
2009-11-21 03:58:21 +08:00
|
|
|
struct Incomplete;
|
2009-08-26 00:37:49 +08:00
|
|
|
|
2009-11-21 03:58:21 +08:00
|
|
|
template<typename T>
|
|
|
|
void destroy_me(T me) {
|
|
|
|
me.~T();
|
|
|
|
}
|
|
|
|
|
|
|
|
template void destroy_me(Incomplete*);
|