1 /* PR middle-end/92014 - bogus warning: writing 8 bytes into a region
2 of size 1 in timezone/zic.c
4 { dg-options "-O2 -Wall" } */
13 void f (char **a
, int i
, int j
)
15 char * cp
= __builtin_strchr (a
[i
], '%');
17 if (cp
&& *++cp
!= 's')
20 z
.s1
= __builtin_strdup (a
[i
]);
21 if (!z
.s1
) __builtin_abort ();
23 z
.s2
= __builtin_strdup (a
[j
]);
24 if (!z
.s2
) __builtin_abort ();
26 z
.c
= cp
? *cp
: '\0'; // { dg-bogus "\\\[-Wstringop-overflow" }