
This brings our tree to NetBSD 7.0, as found on -current on the 10-10-2015. This updates: - LLVM to 3.6.1 - GCC to GCC 5.1 - Replace minix/commands/zdump with usr.bin/zdump - external/bsd/libelf has moved to /external/bsd/elftoolchain/ - Import ctwm - Drop sprintf from libminc Change-Id: I149836ac18e9326be9353958bab9b266efb056f0
29 lines
903 B
C++
29 lines
903 B
C++
template<typename> struct MergeSpecializations;
|
|
template<typename T> struct MergeSpecializations<T[]> {
|
|
typedef int partially_specialized_in_c;
|
|
};
|
|
template<> struct MergeSpecializations<bool> {
|
|
typedef int explicitly_specialized_in_c;
|
|
};
|
|
|
|
template<typename T> struct MergeTemplateDefinitions {
|
|
static constexpr int f();
|
|
static constexpr int g();
|
|
};
|
|
template<typename T> constexpr int MergeTemplateDefinitions<T>::g() { return 2; }
|
|
|
|
template<typename T1 = int>
|
|
struct MergeAnonUnionMember {
|
|
MergeAnonUnionMember() { (void)values.t1; }
|
|
union { int t1; } values;
|
|
};
|
|
inline MergeAnonUnionMember<> maum_c() { return {}; }
|
|
|
|
template<typename T> struct DontWalkPreviousDeclAfterMerging { struct Inner { typedef T type; }; };
|
|
typedef DontWalkPreviousDeclAfterMerging<char>::Inner dwpdam_typedef;
|
|
|
|
namespace TestInjectedClassName {
|
|
template<typename T> struct X { X(); };
|
|
typedef X<char[3]> C;
|
|
}
|