struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-941014-1.c
blobd0cafdfde22811457a84232cf6e4df0f59c34ba3
1 /*
2 941014-1.c from the execute part of the gcc torture suite.
3 */
5 #include <testfwk.h>
7 #ifdef __SDCC
8 #pragma std_c99
9 #pragma disable_warning 85
10 #endif
12 int f (int a, int b) { }
14 void
15 testTortureExecute (void)
17 unsigned long addr1;
18 unsigned long addr2;
20 addr1 = (unsigned long) &f;
21 addr1 += 5;
22 addr2 = 5 + (unsigned long) &f;
24 if (addr1 != addr2)
25 ASSERT (0);
26 return;