struct / union in initializer, RFE #901.
[sdcc.git] / sdcc / support / regression / tests / gcc-torture-execute-920721-1.c
blob076f26d58c48eb2aeea7fc7c578edbf06746f39f
1 /*
2 920721-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 #ifndef __SDCC_pdk14 // Lack of memory
12 long f(short a,short b){return (long)a/b;}
13 #endif
14 void
15 testTortureExecute (void){
16 #ifndef __SDCC_pdk14 // Lack of memory
17 if(f(-32768,-1)!=32768L)ASSERT(0);else return;
18 #endif