This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Add test case for PR31034


I forgot to add the test case for PR31034 to the testsuite.  I just
committed this patch.

Ian


2007-03-05  Ian Lance Taylor  <iant@google.com>

	* gcc.c-torture/compile/pr31034.c: New test.


Index: gcc.c-torture/compile/pr31034.c
===================================================================
--- gcc.c-torture/compile/pr31034.c	(revision 0)
+++ gcc.c-torture/compile/pr31034.c	(revision 0)
@@ -0,0 +1,14 @@
+static inline int
+mod (int a, int n)
+{
+  return a >= n ? a % n : a;
+}
+void dpara(int);
+void opticurve (int m)
+{
+  int i;
+  for (i = 0; i < m; i++)
+    {
+        dpara(mod (i - 1, m));
+    }
+}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]