Home | History | Annotate | Download | only in SemaCXX

Lines Matching full:past

11   y[2] = 2; // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
12 z[1] = 'x'; // expected-warning {{array index 1 is past the end of the array (which contains 1 element)}}
13 w[0][2] = 0; // expected-warning {{array index 2 is past the end of the array (which contains 1 element)}}
14 v[0][0][2] = 0; // expected-warning {{array index 2 is past the end of the array (which contains 1 element)}}
15 return x[2] + // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
17 x[sizeof(x)] + // expected-warning {{array index 8 is past the end of the array (which contains 2 elements)}}
18 x[sizeof(x) / sizeof(x[0])] + // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
20 x[sizeof(x[2])]; // expected-warning {{array index 4 is past the end of the array (which contains 2 elements)}}
34 int val = a[3]; // expected-warning {{array index 3 is past the end of the array (which contains 2 elements)}}
47 u.a[3] = 1; // expected-warning {{array index 3 is past the end of the array (which contains 2 elements)}}
50 p = &u.a[3]; // expected-warning {{array index 3 is past the end of the array (which contains 2 elements)}}
51 *(&u.a[2]) = 1; // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
52 *(&u.a[3]) = 1; // expected-warning {{array index 3 is past the end of the array (which contains 2 elements)}}
57 array[const_subscript] = 0; // expected-warning {{array index 3 is past the end of the array (which contains 2 elements)}}
63 array2[3] = 0; // expected-warning {{array index 3 is past the end of the array (which contains 3 elements)}}
64 array2[2+2] = 0; // expected-warning {{array index 4 is past the end of the array (which contains 3 elements)}}
70 char c2 = str2[5]; // expected-warning {{array index 5 is past the end of the array (which contains 4 elements)}}
73 (*array_ptr)[3] = 1; // expected-warning {{array index 3 is past the end of the array (which contains 2 elements)}}
81 s.arr[4] = 0; // expected-warning 2 {{array index 4 is past the end of the array (which contains 3 elements)}}
82 s.arr[I] = 0; // expected-warning {{array index 5 is past the end of the array (which contains 3 elements)}}
95 ARR_IN_MACRO(1, arr, SIZE); // expected-warning{{array index 10 is past the end of the array (which contains 10 elements)}}
101 return array[(unsigned long long) 100]; // expected-warning {{array index 100 is past the end of the array (which contains 100 elements)}}
119 arr[3] = 42; // expected-warning{{array index 3 is past the end of the array (which contains 3 elements)}}
138 return sizeof(char) == sizeof(char) ? arr[2] : arr[1]; // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
150 arr[2] = 1; // expected-warning {{array index 2 is past the end of the array (which contains 2 elements)}}
202 return F->c1[3] + // expected-warning {{array index 3 is past the end of the array (which contains 1 element)}}
204 B->c1[3] + // expected-warning {{array index 3 is past the end of the array (which contains 1 element)}}
215 return F->c[3] + // expected-warning {{array index 3 is past the end of the array (which contains 1 element)}}
216 B->c[3]; // expected-warning {{array index 3 is past the end of the array (which contains 1 element)}}
223 bar(foo[5]); // expected-warning {{array index 5 is past the end of the array (which contains 5 elements)}}
224 ++foo[5]; // expected-warning {{array index 5 is past the end of the array (which contains 5 elements)}}
225 if (foo[6]) // expected-warning {{array index 6 is past the end of the array (which contains 5 elements)}}
226 return --foo[6]; // expected-warning {{array index 6 is past the end of the array (which contains 5 elements)}}
228 return foo[5]; // expected-warning {{array index 5 is past the end of the array (which contains 5 elements)}}
237 ((char*)foo)[sizeof(foo)] = '\0'; // expected-warning {{array index 32768 is past the end of the array (which contains 32768 elements)}}
248 test_pr11007_aux("foo", a[1000]); // expected-warning {{array index 1000 is past the end of the array}}
254 a[(unsigned char)'\xA1'] = 1; // expected-warning {{array index 161 is past the end of the array}}