Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr87099.c
blob47e2315de0e91ae9c257bbf09bba6fb043f10704
1 /* PR middle-end/87099 */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target alloca } */
4 /* { dg-options "-Wstringop-overflow" } */
6 void bar (char *);
8 int
9 foo (int n)
11 char v[n];
12 bar (v);
13 return __builtin_strncmp (&v[1], "aaa", 3);
16 int
17 baz (int n, char *s)
19 char v[n];
20 bar (v);
21 return __builtin_strncmp (&v[1], s, 3);