Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr102511.c
blob8a9af3473057a284a303b7b03046abf0793c8a1c
1 // { dg-do run }
2 // { dg-options "-O3" }
4 char arr_15 [8];
5 __attribute__((noipa))
6 void test(signed char a, unsigned short b, unsigned long long c,
7 unsigned short f) {
8 for (int d = b - 8; d < b; d += 2)
9 for (short e = 0; e < (unsigned short)((f ? 122 : 0) ^ (a ? c : 0)) - 64055;
10 e += 3)
11 arr_15[d] = 42;
13 int main() {
14 test(37, 8, 12325048486467861044ULL, 45936);
15 for (int i = 0; i < 8; ++i)
17 if (arr_15[i] != ((i&1) ? 0 : 42))
18 __builtin_abort();
20 return 0;