Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / Wstringop-overflow-74.c
blobbacec964d36bbde8d271e5a7c7226cc71aab218d
1 /* PR middle-end/102200 - ICE on a min of a decl and pointer in a loop
2 { dg-do compile }
3 { dg-options "-O2 -Wall" } */
5 typedef __SIZE_TYPE__ size_t;
7 extern char a[], n;
9 void f (void)
11 char *p = a;
12 size_t end = 1;
14 while (n)
16 if (p < (char*)end)
17 *p = ';';
19 if (p > (char*)&end)
20 p = (char*)&end;