diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20040331-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20040331-1.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20040331-1.c b/gcc/testsuite/gcc.c-torture/execute/20040331-1.c new file mode 100644 index 000000000..2e8f9e867 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20040331-1.c @@ -0,0 +1,20 @@ +/* PR c++/14755 */ +extern void abort (void); +extern void exit (int); + +int +main (void) +{ +#if __INT_MAX__ >= 2147483647 + struct { int count: 31; } s = { 0 }; + while (s.count--) + abort (); +#elif __INT_MAX__ >= 32767 + struct { int count: 15; } s = { 0 }; + while (s.count--) + abort (); +#else + /* Don't bother because __INT_MAX__ is too small. */ +#endif + exit (0); +} |