2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / restrict-4.c
blob52994d48b2e828bce6f39da48eb8a9daf679b3cc
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 * __restrict qr)
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;