1 /* 2 20040331-1.c from the execute part of the gcc torture suite. 3 */ 4 5 #include <testfwk.h> 6 7 #ifdef __SDCC 8 #pragma std_c99 9 #endif 10 11 #include <limits.h> 12 13 /* PR c++/14755 */ 14 15 void testTortureExecute(void)16testTortureExecute (void) 17 { 18 #if INT_MAX >= 2147483647 19 struct { int count: 31; } s = { 0 }; 20 while (s.count--) 21 ASSERT (0); 22 #elif INT_MAX >= 32767 23 struct { int count: 15; } s = { 0 }; 24 while (s.count--) 25 ASSERT (0); 26 #else 27 /* Don't bother because __INT_MAX__ is too small. */ 28 #endif 29 return; 30 } 31