]> granicus.if.org Git - llvm/commitdiff
[ConstantRange] Add missing result check to the ConstantRange::truncate test.
authorCraig Topper <craig.topper@gmail.com>
Sun, 4 Jun 2017 23:03:52 +0000 (23:03 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 4 Jun 2017 23:03:52 +0000 (23:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304693 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/IR/ConstantRangeTest.cpp

index c6c9bf6d6b503c3207e4f21d90432bf94068e872..a03b7680d29aab4577fc9d88e97ed26a92f7aef0 100644 (file)
@@ -187,6 +187,7 @@ TEST_F(ConstantRangeTest, Trunc) {
   EXPECT_EQ(TOne, ConstantRange(One.getLower().trunc(10),
                                 One.getUpper().trunc(10)));
   EXPECT_TRUE(TSome.isFullSet());
+  EXPECT_TRUE(TWrap.isFullSet());
 }
 
 TEST_F(ConstantRangeTest, ZExt) {