* gcc.c-torture/compile/990913-1.c: New test.
authorJeffrey A Law <law@cygnus.com>
Mon, 13 Sep 1999 12:28:55 +0000 (12:28 +0000)
committerJeff Law <law@gcc.gnu.org>
Mon, 13 Sep 1999 12:28:55 +0000 (06:28 -0600)
From-SVN: r29373

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

index ed20451..883ff6a 100644 (file)
@@ -1,3 +1,7 @@
+Mon Sep 13 06:28:57 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * gcc.c-torture/compile/990913-1.c: New test.
+
 Fri Sep 10 11:21:25 BST 1999  Nathan Sidwell  <nathan@acm.org>
 
        * g++.old-deja/g++.jason/rfg4.C: Revert erroneous change, add -w.
diff --git a/gcc/testsuite/gcc.c-torture/compile/990913-1.c b/gcc/testsuite/gcc.c-torture/compile/990913-1.c
new file mode 100644 (file)
index 0000000..cad31a0
--- /dev/null
@@ -0,0 +1,10 @@
+int f()
+{
+  unsigned char hrs, min;
+
+  min = ((min / 10) << 4) + min % 10;
+  hrs = ((hrs / 10) << 4) + hrs % 10;
+
+  return hrs + min;
+}