2 restrict-1.c from the execute part of the gcc torture tests.
11 /* Origin: Kaveh Ghazi <ghazi@caip.rutgers.edu> 2002-05-27. */
15 extern int func0 (int);
16 extern int func1 (int);
18 /* GCC should automatically detect attributes for these functions.
19 At -O3 They'll be inlined, but that's ok. */
20 static int func2 (int a
) { return i
+ a
; } /* pure */
21 static int func3 (int a
) { return a
* 3; } /* const */
22 static int func4 (int a
) { return func0(a
) + a
; } /* pure */
23 static int func5 (int a
) { return a
+ func1(a
); } /* const */
24 static int func6 (int a
) { return func2(a
) + a
; } /* pure */
25 static int func7 (int a
) { return a
+ func3(a
); } /* const */
28 testTortureExecute (void)
30 #ifndef __SDCC_pdk14 // Lack of memory
77 int func0 (int a
) { return a
- i
; } /* pure */
78 int func1 (int a
) { return a
- a
; } /* const */