llvm.org GIT mirror llvm / 5e24737
Add support for TypeBuilder<const/volatile void*, false>. Thanks to Jochen Wilhelmy for the suggestion! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95677 91177308-0d34-0410-b5e6-96231b3b80d8 Jeffrey Yasskin 9 years ago
2 changed file(s) with 14 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
230230 /// we special case it.
231231 template<> class TypeBuilder
232232 : public TypeBuilder*, false> {};
233 template<> class TypeBuilder
234 : public TypeBuilder*, false> {};
235 template<> class TypeBuilder
236 : public TypeBuilder*, false> {};
237 template<> class TypeBuilder
238 : public TypeBuilder*, false> {};
233239
234240 template class TypeBuilder {
235241 public:
1818 TEST(TypeBuilderTest, Void) {
1919 EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder::get(getGlobalContext())));
2020 EXPECT_EQ(Type::getVoidTy(getGlobalContext()), (TypeBuilder::get(getGlobalContext())));
21 // Special case for C compatibility:
21 // Special cases for C compatibility:
2222 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()),
2323 (TypeBuilder::get(getGlobalContext())));
24 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()),
25 (TypeBuilder::get(getGlobalContext())));
26 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()),
27 (TypeBuilder::get(getGlobalContext())));
28 EXPECT_EQ(Type::getInt8PtrTy(getGlobalContext()),
29 (TypeBuilder::get(
30 getGlobalContext())));
2431 }
2532
2633 TEST(TypeBuilderTest, HostIntegers) {