diff options
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20021010-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20021010-1.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20021010-1.c b/gcc/testsuite/gcc.c-torture/execute/20021010-1.c new file mode 100644 index 00000000000..d742ce40b5f --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20021010-1.c @@ -0,0 +1,21 @@ +#include <limits.h> + +int +sub () +{ + int dummy = 0, a = 16; + + if (a / INT_MAX / 16 == 0) + return 0; + else + return a / INT_MAX / 16; +} + +int +main () +{ + if (sub () != 0) + abort (); + + exit (0); +} |