Lines Matching refs:array
75 int array[10];
77 std::fill(array, array + 10, 0xaa);
78 EXPECT_TRUE(array[0] == 0xaa);
79 EXPECT_TRUE(array[1] == 0xaa);
80 EXPECT_TRUE(array[2] == 0xaa);
81 EXPECT_TRUE(array[3] == 0xaa);
82 EXPECT_TRUE(array[4] == 0xaa);
83 EXPECT_TRUE(array[5] == 0xaa);
84 EXPECT_TRUE(array[6] == 0xaa);
85 EXPECT_TRUE(array[7] == 0xaa);
86 EXPECT_TRUE(array[8] == 0xaa);
87 EXPECT_TRUE(array[9] == 0xaa);
93 int array[10];
95 int *ret = std::fill_n(array, 10, 0xaa);
96 EXPECT_TRUE(array[0] == 0xaa);
97 EXPECT_TRUE(array[1] == 0xaa);
98 EXPECT_TRUE(array[2] == 0xaa);
99 EXPECT_TRUE(array[3] == 0xaa);
100 EXPECT_TRUE(array[4] == 0xaa);
101 EXPECT_TRUE(array[5] == 0xaa);
102 EXPECT_TRUE(array[6] == 0xaa);
103 EXPECT_TRUE(array[7] == 0xaa);
104 EXPECT_TRUE(array[8] == 0xaa);
105 EXPECT_TRUE(array[9] == 0xaa);
106 EXPECT_TRUE(ret == array + 10);