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]

new Objective-C tests


I've added two new tests, nested-1.m and nested-2.m, on the 3.0
branch. I've fixed the protocol.m test. All changes are contributed by
Nicola Pero.

2001-03-06  Ovidiu Predescu  <ovidiu@cup.hp.com>

	* objc/execute/nested-1.m: Added. New test from Nicola Pero.

	* objc/execute/nested-2.m: Likewise.

	* objc/execute/protocol.m (main): Added. Patch from Nicola Pero.


Index: gcc/testsuite/objc/execute/protocol.m
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/objc/execute/protocol.m,v
retrieving revision 1.1
retrieving revision 1.1.4.1
diff -u -r1.1 -r1.1.4.1
--- protocol.m  2000/12/14 22:02:18     1.1
+++ protocol.m  2001/03/07 04:54:44     1.1.4.1
@@ -14,3 +14,8 @@
 }
 @end
 
+int main (void)
+{
+  return 0;
+}
+
--- /dev/null   Mon Jan 29 21:26:10 2001
+++ gcc/testsuite/objc/execute/nested-1.m       Tue Mar  6 20:58:58 2001
@@ -0,0 +1,12 @@
+/* Contributed by Nicola Pero Wed Feb 21 12:08:16 GMT 2001 */
+
+int main (void)
+{
+  void nested (void)
+    {
+      return;
+    }
+
+  return 0;
+}
+
--- /dev/null   Mon Jan 29 21:26:10 2001
+++ gcc/testsuite/objc/execute/nested-2.m       Tue Mar  6 21:06:31 2001
@@ -0,0 +1,17 @@
+/* Contributed by Nicola Pero Mon Mar  5 19:57:11 CET 2001 */
+
+int main (void)
+{
+  inline int nested (void)
+    {
+      return 1;
+    }
+
+  if (nested () != 1)
+    {
+      exit (1);
+    }
+
+  return 0;
+}
+


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