blob: 06570c16b674011e6800e6dd11237d64d811f524 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics
__attribute__((objc_root_class))
@interface Root
@end
@class Forward;
template <class T> void destroyPointer(T *t) {
t->~T();
}
template <class T> void destroyReference(T &t) {
t.~T();
}
template void destroyPointer<Root*>(Root **);
template void destroyReference<Root*>(Root *&);
// rdar://18522255
template void destroyPointer<Forward*>(Forward **);
template void destroyReference<Forward*>(Forward *&);
|