Searched refs:HasOperands (Results 1 – 1 of 1) sorted by relevance
1631 TEST(MatchBinaryOperator, HasOperands) { in TEST() argument1632 StatementMatcher HasOperands = binaryOperator( in TEST() local1634 EXPECT_TRUE(matches("void x() { 1 + 2; }", HasOperands)); in TEST()1635 EXPECT_TRUE(matches("void x() { 2 + 1; }", HasOperands)); in TEST()1636 EXPECT_TRUE(notMatches("void x() { 1 + 1; }", HasOperands)); in TEST()1637 EXPECT_TRUE(notMatches("void x() { 2 + 2; }", HasOperands)); in TEST()1638 EXPECT_TRUE(notMatches("void x() { 0 + 0; }", HasOperands)); in TEST()1639 EXPECT_TRUE(notMatches("void x() { 0 + 1; }", HasOperands)); in TEST()