Added.
authorOvidiu Predescu <ovidiu@gcc.gnu.org>
Thu, 5 Oct 2000 16:00:17 +0000 (16:00 +0000)
committerOvidiu Predescu <ovidiu@gcc.gnu.org>
Thu, 5 Oct 2000 16:00:17 +0000 (16:00 +0000)
From-SVN: r36727

gcc/testsuite/objc/execute/np-1.m [new file with mode: 0644]
gcc/testsuite/objc/execute/np-2.m [new file with mode: 0644]

diff --git a/gcc/testsuite/objc/execute/np-1.m b/gcc/testsuite/objc/execute/np-1.m
new file mode 100644 (file)
index 0000000..6de2623
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+ * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
+ * Tue Sep 19 4:29AM
+ */
+
+#include <objc/objc.h>
+#include <objc/Protocol.h>
+
+@protocol MyProtocol
+- (oneway void) methodA;
+@end
+
+@interface MyObject <MyProtocol>
+@end
+
+@implementation MyObject
+- (oneway void) methodA
+{
+}
+@end
+
+int main (void)
+{
+  MyObject *object = nil;
+
+  [object methodA];
+
+   exit (0);
+}
+
+
diff --git a/gcc/testsuite/objc/execute/np-2.m b/gcc/testsuite/objc/execute/np-2.m
new file mode 100644 (file)
index 0000000..37cf6dd
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
+ * Tue Sep 19 4:34AM
+ */
+#include <objc/objc.h>
+#include <objc/Protocol.h>
+
+@protocol MyProtocol
++ (oneway void) methodA;
+@end
+
+@interface MyObject <MyProtocol>
+@end
+
+@implementation MyObject
++ (oneway void) methodA
+{
+  printf ("methodA\n");
+}
+@end
+
+int main (void)
+{
+  [MyObject methodA];
+
+   exit (0);
+}
+
+