comparison contrib/reghunt/examples/30643.c @ 0:a06113de4d67

first commit
author kent <kent@cr.ie.u-ryukyu.ac.jp>
date Fri, 17 Jul 2009 14:47:48 +0900
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:a06113de4d67
1 extern void abort (void);
2 struct s { int a; int b;};
3 void bar (struct s *ps, int *p, int *__restrict__ rp, int *__restrict__ rq)
4 {
5 ps->a = 0;
6 ps->b = 1;
7 if (ps->a != 0) abort ();
8 p[0] = 0;
9 p[1] = 1;
10 if (p[0] != 0) abort ();
11 rp[0] = 0;
12 rq[0] = 1;
13 if (rp[0] != 0) abort();
14 }