* gcc.c-torture/execute/20101011-1.c: Skip on SH.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / pr38212.c
blob867d4c17431645eecdcfc480289575619b57bb02
1 int __attribute__((noinline))
2 foo (int *__restrict p, int i)
4 int *__restrict q;
5 int *__restrict r;
6 int v, w;
7 q = p + 1;
8 r = q - i;
9 v = *r;
10 *p = 1;
11 w = *r;
12 return v + w;
14 extern void abort (void);
15 int main()
17 int i = 0;
18 if (foo (&i, 1) != 1)
19 abort ();
20 return 0;