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-20071011-1.c
blob1369ad9d250a29c6869a71fe38d5115ba4c36cb7
1 /*
2 20071011-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #endif
11 void foo(int *p)
13 int x;
14 int y;
15 x = *p;
16 *p = 0;
17 y = *p;
18 if (x != y)
19 return;
20 ASSERT (0);
23 void
24 testTortureExecute (void)
26 int a = 1;
27 foo(&a);
28 return;