Skip analyzer strndup test on hppa*-*-hpux*
[official-gcc.git] / gcc / testsuite / gcc.dg / pr90866-2.c
blob641479965793357e129dbfe931ec5a3f76ceb297
1 /* PR tree-optimization/90866 - ICE in fold_binary_loc, at fold-const.c:9827
2 { dg-do compile }
3 { dg-require-effective-target global_constructor }
4 { dg-options "-O2 -fsanitize=thread" }
5 */
7 typedef enum { a } b;
8 typedef struct {
9 int c[0];
10 } d;
11 typedef struct {
12 int *data;
13 } e;
14 typedef struct {
15 e buffer;
16 } f;
17 int g, h;
19 int i(f *j, d *k, b l, int m) {
20 if (l)
21 if (m) {
22 h = j->buffer.data[0];
23 k->c[g] = k->c[g] * 8;
25 return 0;