diff options
author | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-24 18:25:18 +0000 |
---|---|---|
committer | nickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-05-24 18:25:18 +0000 |
commit | 2c552ce5a9adf469a0452c1a72221cd24c04db97 (patch) | |
tree | 2477b7ed0d211436d20069441b9f54ec95da7c8b /gcc/testsuite/gcc.c-torture/execute/20000523-1.c | |
parent | c011f8210be7d3671485db8ee67ac56f8c311419 (diff) | |
download | gcc-2c552ce5a9adf469a0452c1a72221cd24c04db97.tar.gz |
new test case
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34136 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.c-torture/execute/20000523-1.c')
-rw-r--r-- | gcc/testsuite/gcc.c-torture/execute/20000523-1.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/execute/20000523-1.c b/gcc/testsuite/gcc.c-torture/execute/20000523-1.c new file mode 100644 index 00000000000..91ed7860fd7 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/20000523-1.c @@ -0,0 +1,19 @@ +int +main (void) +{ + long long x; + int n; + + n = 9; + x = (((long long) n) << 55) / 0xff; + + if (x == 0) + abort (); + + x = (((long long) 9) << 55) / 0xff; + + if (x == 0) + abort (); + + exit (0); +} |