Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr107557-1.c
blobf14b784dbbffc09c9c95eed05c7bf1c68682e10e
1 /* PR107557
2 * { dg-do compile }
3 * { dg-require-effective-target lto }
4 * { dg-options "-flto -fsanitize=undefined -fexceptions -Wno-incompatible-pointer-types" }
5 */
8 int c[1][3*2];
9 int f(int * const m, int (**v)[*m * 2])
11 return &(c[0][*m]) == &((*v)[0][*m]);
13 int test(int n, int (*(*fn)(void))[n])
15 return (*fn())[0];
17 int main()
19 int m = 3;
20 int (*d)[3*2] = c;
21 int (*fn[m])(void);
22 return f(&m, &d) + test(m, &fn);