Debian Codegraph @

gcc/testsuite/gcc.dg/torture/restrict-1.c

raw
1 /* { dg-do run } */
2
3 extern void abort (void);
4 void __attribute__((noinline,noclone))
5 foo (int ** __restrict__ p, int ** __restrict__ q)
6 {
7 **p = **q;
8 }
9 int main()
10 {
11 int x = 0, y = 1, *i = &x, *j = &y;
12 foo (&i, &j);
13 if (x != 1)
14 abort ();
15 return 0;
16 }