c++: Fix ICE with #embed/RAW_DATA_CST after list conversion [PR118671]
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr77648-2.c
blob1c3734d34d8b3166d9c71fda2674df09f929cb74
1 /* { dg-do run } */
3 struct S { int *p; int *q; };
5 int **__attribute__((noinline,noclone,const)) foo (struct S *s)
7 return &s->q;
10 int main()
12 struct S s;
13 int i = 1, j = 2;
14 int **x;
15 s.p = &i;
16 s.q = &j;
17 x = foo (&s);
18 **x = 7;
19 if (j != 7)
20 __builtin_abort ();
21 return 0;