diff options
Diffstat (limited to 'unittests/IR/TypesTest.cpp')
-rw-r--r-- | unittests/IR/TypesTest.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/unittests/IR/TypesTest.cpp b/unittests/IR/TypesTest.cpp index 2cee640..b4dbf8e 100644 --- a/unittests/IR/TypesTest.cpp +++ b/unittests/IR/TypesTest.cpp @@ -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 |