Index: test/unittests/compiler/common-operator-unittest.cc |
diff --git a/test/unittests/compiler/common-operator-unittest.cc b/test/unittests/compiler/common-operator-unittest.cc |
index 440359e3b5c6e9bfa4daef9f5390c3a27618400b..52f99a5e127c17b121c9c3ddb0bf34e1721746fe 100644 |
--- a/test/unittests/compiler/common-operator-unittest.cc |
+++ b/test/unittests/compiler/common-operator-unittest.cc |
@@ -392,6 +392,19 @@ TEST_F(CommonOperatorTest, FinishRegion) { |
EXPECT_EQ(1, op->ValueOutputCount()); |
} |
+TEST_F(CommonOperatorTest, Projection) { |
+ TRACED_FORRANGE(size_t, index, 0, 3) { |
+ const Operator* op = common()->Projection(index); |
+ EXPECT_EQ(index, ProjectionIndexOf(op)); |
+ EXPECT_EQ(1, op->ValueInputCount()); |
+ EXPECT_EQ(1, op->ControlInputCount()); |
+ EXPECT_EQ(2, OperatorProperties::GetTotalInputCount(op)); |
+ EXPECT_EQ(0, op->ControlOutputCount()); |
+ EXPECT_EQ(0, op->EffectOutputCount()); |
+ EXPECT_EQ(1, op->ValueOutputCount()); |
+ } |
+} |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |