about summary refs log tree commit diff homepage
path: root/unittests
diff options
context:
space:
mode:
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Expr/ExprTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/Expr/ExprTest.cpp b/unittests/Expr/ExprTest.cpp
index a5e5d5d7..7b37973a 100644
--- a/unittests/Expr/ExprTest.cpp
+++ b/unittests/Expr/ExprTest.cpp
@@ -22,7 +22,7 @@ ref<Expr> getConstant(int value, Expr::Width width) {
 }
 
 TEST(ExprTest, BasicConstruction) {
-  EXPECT_EQ(ConstantExpr::alloc(0, 32),
+  EXPECT_EQ(ref<Expr>(ConstantExpr::alloc(0, 32)),
             SubExpr::create(ConstantExpr::alloc(10, 32),
                             ConstantExpr::alloc(10, 32)));
 }