aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr87647.c
blob: 67f9d8734135be4667b28eaced3d1da67495328b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* PR middle-end/87647 */

struct A {};
struct A *const b = &(struct A) {};
struct B { char *s; struct A *t; };
void bar (struct B *);

void
foo (void)
{
  struct B a[] = { "", b, "", b, "", b, "", b, "", b, "", b, "", b, "", b,
		   "", b, "", b, "", b, "", b, "", b, "", b, "", b, "", b,
		   "", b };
  bar (a);
}