mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-06 19:10:00 +00:00
Add unit test for isLayoutIdentical(empty, empty).
It was previously asserting in Visual C++ debug mode on a null iterator passed to std::equal. Test by Hans Wennborg! llvm-svn: 245270
This commit is contained in:
parent
82f54ac1cb
commit
60a96994e9
@ -27,4 +27,12 @@ TEST(TypesTest, StructType) {
|
||||
EXPECT_FALSE(Struct->hasName());
|
||||
}
|
||||
|
||||
TEST(TypesTest, LayoutIdenticalEmptyStructs) {
|
||||
LLVMContext C;
|
||||
|
||||
StructType *Foo = StructType::create(C, "Foo");
|
||||
StructType *Bar = StructType::create(C, "Bar");
|
||||
EXPECT_TRUE(Foo->isLayoutIdentical(Bar));
|
||||
}
|
||||
|
||||
} // end anonymous namespace
|
||||
|
Loading…
Reference in New Issue
Block a user