From 18a5bdf4207b387e8a68b8a495742570baa3bd73 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Wed, 5 Aug 2009 23:28:57 +0000 Subject: Update unit test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78260 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/Support/TypeBuilderTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'unittests') diff --git a/unittests/Support/TypeBuilderTest.cpp b/unittests/Support/TypeBuilderTest.cpp index e6c7c95..2057093 100644 --- a/unittests/Support/TypeBuilderTest.cpp +++ b/unittests/Support/TypeBuilderTest.cpp @@ -171,7 +171,7 @@ public: st.push_back(TypeBuilder::get(Context)); st.push_back(TypeBuilder::get(Context)); st.push_back(TypeBuilder::get(Context)); - static const StructType *const result = StructType::get(st); + static const StructType *const result = StructType::get(Context, st); return result; } @@ -194,7 +194,7 @@ public: st.push_back(TypeBuilder, cross>::get(Context)); st.push_back(TypeBuilder*, cross>::get(Context)); st.push_back(TypeBuilder*[], cross>::get(Context)); - static const StructType *const result = StructType::get(st); + static const StructType *const result = StructType::get(Context, st); return result; } @@ -211,19 +211,19 @@ public: namespace { TEST(TypeBuilderTest, Extensions) { - EXPECT_EQ(PointerType::getUnqual(StructType::get( + EXPECT_EQ(PointerType::getUnqual(StructType::get(getGlobalContext(), TypeBuilder::get(getGlobalContext()), TypeBuilder::get(getGlobalContext()), TypeBuilder::get(getGlobalContext()), NULL)), (TypeBuilder::get(getGlobalContext()))); - EXPECT_EQ(PointerType::getUnqual(StructType::get( + EXPECT_EQ(PointerType::getUnqual(StructType::get(getGlobalContext(), TypeBuilder, false>::get(getGlobalContext()), TypeBuilder*, false>::get(getGlobalContext()), TypeBuilder*[], false>::get(getGlobalContext()), NULL)), (TypeBuilder::get(getGlobalContext()))); - EXPECT_EQ(PointerType::getUnqual(StructType::get( + EXPECT_EQ(PointerType::getUnqual(StructType::get(getGlobalContext(), TypeBuilder, false>::get(getGlobalContext()), TypeBuilder*, false>::get(getGlobalContext()), TypeBuilder*[], false>::get(getGlobalContext()), -- cgit v1.1