From: Nick Clifton Date: Wed, 24 May 2000 18:25:18 +0000 (+0000) Subject: new test case X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=88903d85bcd7becbc32915dc6f95405ee585091e;p=gcc.git new test case From-SVN: r34136 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 8b280cbe725..1ec64a2665a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-05-24 Nick Clifton + + * gcc.c-torture/execute/20000523-1.c: New test. + 2000-05-23 Zack Weinberg * c-torture/execute/bcp-1.c: Replace abort in arg of 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); +}