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