Googletest export

Fix stack overflow in AnyOfArray tests.

PiperOrigin-RevId: 231881125
pull/2100/head
Abseil Team 6 years ago committed by Ashley Hedberg
parent 4f4c01d8c8
commit 0ea2d8f8fa
  1. 4
      googlemock/test/gmock-generated-matchers_test.cc

@ -1164,8 +1164,8 @@ TEST(AnyOfArrayTest, BasicForms) {
EXPECT_THAT(0, Not(AnyOfArray(ar, 0))); EXPECT_THAT(0, Not(AnyOfArray(ar, 0)));
EXPECT_THAT(1, AnyOfArray(ar, 1)); EXPECT_THAT(1, AnyOfArray(ar, 1));
EXPECT_THAT(2, Not(AnyOfArray(ar, 1))); EXPECT_THAT(2, Not(AnyOfArray(ar, 1)));
EXPECT_THAT(3, AnyOfArray(ar + 1, 3)); EXPECT_THAT(3, AnyOfArray(ar + 1, 2));
EXPECT_THAT(4, Not(AnyOfArray(ar + 1, 3))); EXPECT_THAT(4, Not(AnyOfArray(ar + 1, 2)));
// Array // Array
// int ar0[0]; Not usable // int ar0[0]; Not usable
int ar1[1] = {1}; int ar1[1] = {1};

Loading…
Cancel
Save