OSDN Git Service

new test case
authornickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 2000 18:25:18 +0000 (18:25 +0000)
committernickc <nickc@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 24 May 2000 18:25:18 +0000 (18:25 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@34136 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/20000523-1.c [new file with mode: 0644]

index 8b280cb..1ec64a2 100644 (file)
@@ -1,3 +1,7 @@
+2000-05-24  Nick Clifton  <nickc@cygnus.com>
+
+       * gcc.c-torture/execute/20000523-1.c: New test.
+
 2000-05-23  Zack Weinberg  <zack@wolery.cumb.org>
 
        * 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 (file)
index 0000000..91ed786
--- /dev/null
@@ -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);
+}