1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 __attribute__((objc_root_class))
10 template <class T> void destroyPointer(T *t) {
14 template <class T> void destroyReference(T &t) {
18 template void destroyPointer<Root*>(Root **);
19 template void destroyReference<Root*>(Root *&);
21 template void destroyPointer<Forward*>(Forward **);
22 template void destroyReference<Forward*>(Forward *&);