[llvm] r304693 - [ConstantRange] Add missing result check to the ConstantRange::truncate test.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 4 16:03:52 PDT 2017


Author: ctopper
Date: Sun Jun  4 18:03:52 2017
New Revision: 304693

URL: http://llvm.org/viewvc/llvm-project?rev=304693&view=rev
Log:
[ConstantRange] Add missing result check to the ConstantRange::truncate test.

Modified:
    llvm/trunk/unittests/IR/ConstantRangeTest.cpp

Modified: llvm/trunk/unittests/IR/ConstantRangeTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/ConstantRangeTest.cpp?rev=304693&r1=304692&r2=304693&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/ConstantRangeTest.cpp (original)
+++ llvm/trunk/unittests/IR/ConstantRangeTest.cpp Sun Jun  4 18:03:52 2017
@@ -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) {




More information about the llvm-commits mailing list