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-931018-1.c
blob1f9315efc4616f600b369feb927b2255baf9ebf3
1 /*
2 931018-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c89
9 #endif
11 unsigned int a[/*0x1000*/20];
12 extern const unsigned long v;
14 void f (unsigned long a);
16 void
17 testTortureExecute (void)
19 f (v);
20 f (v);
21 return;
24 void f (unsigned long a)
26 if (a != 0xdeadbeefL)
27 ASSERT (0);
30 const unsigned long v = 0xdeadbeefL;