forked from OSchip/llvm-project
26 lines
433 B
C
26 lines
433 B
C
|
@__experimental_modules_import templates_top;
|
||
|
|
||
|
template<typename T> class Vector {
|
||
|
public:
|
||
|
void push_back(const T&);
|
||
|
};
|
||
|
|
||
|
template<typename T> class List;
|
||
|
template<> class List<bool> {
|
||
|
public:
|
||
|
void push_back(int);
|
||
|
};
|
||
|
|
||
|
namespace N {
|
||
|
template<typename T> class Set {
|
||
|
public:
|
||
|
void insert(T);
|
||
|
};
|
||
|
}
|
||
|
|
||
|
template <typename T>
|
||
|
void pendingInstantiation(T) {}
|
||
|
void triggerPendingInstantiationToo() {
|
||
|
pendingInstantiation(12);
|
||
|
}
|