Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:Arr

476 constexpr int arr[40] = { 1, 2, 3, [8] = 4 }; // expected-warning {{C99 feature}}
483 static_assert(SumNonzero(arr) == 6, "");
484 static_assert(CountZero(arr, arr + 40) == 36, "");
588 struct Arr {
589 char arr[3];
590 constexpr Arr() : arr{'x', 'y', 'z'} {}
592 constexpr int hash(Arr &&a) {
593 return a.arr[0] + a.arr[1] * 0x100 + a.arr[2] * 0x10000;
595 constexpr int k = hash(Arr());
603 int arr[5];
612 static_assert(agg1.arr[-1] == 0, ""); // expected-error {{constant expression}} expected-note {{cannot refer to element -1}}
613 static_assert(agg1.arr[0] == 0, "");
614 static_assert(agg1.arr[4] == 0, "");
615 static_assert(agg1.arr[5] == 0, ""); // expected-error {{constant expression}} expected-note {{read of dereferenced one-past-the-end}}
1221 int arr[k]; // expected-warning {{C99}}
1223 sizeof(arr) // expected-error {{constant expression}}