Files
clang-p2996/clang/test/Modules/Inputs/templates-left.h
Richard Smith 0b87e0739e When merging class definitions across modules in C++, merge together fields.
This change doesn't go all the way to making fields redeclarable; instead, it
makes them 'mergeable', which means we can find the canonical declaration, but
not much else (and for a declaration that's not from a module, the canonical
declaration is always that declaration).

llvm-svn: 192092
2013-10-07 08:02:11 +00:00

36 lines
696 B
C++

@import templates_top;
template<typename T> class Vector;
template<typename T> class Vector;
template<typename T> class List;
template<> class List<bool> {
public:
void push_back(int);
};
namespace N {
template<typename T> class Set;
}
namespace N {
template<typename T> class Set {
public:
void insert(T);
};
}
constexpr unsigned List<int>::*size_left = &List<int>::size;
List<int> list_left = { 0, 8 };
typedef List<int> ListInt_left;
template <typename T>
void pendingInstantiationEmit(T) {}
void triggerPendingInstantiation() {
pendingInstantiationEmit(12);
pendingInstantiationEmit(42.);
}
void redeclDefinitionEmit(){}
typedef Outer<int>::Inner OuterIntInner_left;