It was previously asserting in Visual C++ debug mode on a null
iterator passed to std::equal.
Test by Hans Wennborg!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245270
91177308-0d34-0410-b5e6-
96231b3b80d8
EXPECT_FALSE(Struct->hasName());
}
+TEST(TypesTest, LayoutIdenticalEmptyStructs) {\r
+ LLVMContext C;\r
+\r
+ StructType *Foo = StructType::create(C, "Foo");\r
+ StructType *Bar = StructType::create(C, "Bar");\r
+ EXPECT_TRUE(Foo->isLayoutIdentical(Bar));\r
+}\r
+
} // end anonymous namespace