Fixes untainted branch that is immediately after relaxed loads
[oota-llvm.git] / unittests / IR / TypesTest.cpp
index 2cee640a13d3345ff89c34319e161b803ea83a7f..f006db51de56746f650dfe7925632879d96a4724 100644 (file)
@@ -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