2013-10-29 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / restrict-2.c
blobec51ade61636742a83bca33b0601bd4c520355d9
1 /* { dg-do run } */
3 extern void abort (void);
5 static inline void
6 foo (int * p)
8 int * __restrict pr = p;
9 *pr = 1;
12 int __attribute__((noinline,noclone))
13 bar (int *q)
15 int * __restrict qr = q;
16 *qr = 0;
17 foo (qr);
18 return *qr;
21 int main()
23 int i;
24 if (bar (&i) != 1)
25 abort ();
26 return 0;