Add _FloatN, _FloatNx tests for __builtin_fpclassify.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr77648-1.c
blob3597e2ed4567e48b9cd8d92c7b4cd57a8e2a4918
1 /* { dg-do run } */
3 struct S { int *p; int *q; };
5 int **__attribute__((noinline,noclone,pure)) foo (struct S *s)
7 int tem;
8 __asm__ ("" : "=g" (tem) : "g" (s->p));
9 return &s->q;
12 int main()
14 struct S s;
15 int i = 1, j = 2;
16 int **x;
17 s.p = &i;
18 s.q = &j;
19 x = foo (&s);
20 **x = 7;
21 if (j != 7)
22 __builtin_abort ();
23 return 0;