2013-10-21 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / restrict-1.c
blobe7af4f538ced6785105d951320d86933622147a7
1 /* { dg-do run } */
3 extern void abort (void);
4 void __attribute__((noinline,noclone))
5 foo (int ** __restrict__ p, int ** __restrict__ q)
7 **p = **q;
9 int main()
11 int x = 0, y = 1, *i = &x, *j = &y;
12 foo (&i, &j);
13 if (x != 1)
14 abort ();
15 return 0;