Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-20090623-1.c
blob8a2e634db0a28bca7ad8196d8f2d4b994e9d6f43
1 /*
2 20090623-1.c from the execute part of the gcc torture tests.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 int *restrict x;
13 int foo (int y)
15 *x = y;
16 return *x;
19 void
20 testTortureExecute (void)
22 int i = 0;
23 x = &i;
24 if (foo(1) != 1)
25 ASSERT (0);
26 return;