aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/objc/execute/np-2.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/objc/execute/np-2.m')
-rw-r--r--gcc-4.9/gcc/testsuite/objc/execute/np-2.m30
1 files changed, 30 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/objc/execute/np-2.m b/gcc-4.9/gcc/testsuite/objc/execute/np-2.m
new file mode 100644
index 000000000..af973cf9d
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/objc/execute/np-2.m
@@ -0,0 +1,30 @@
+/*
+ * Contributed by Nicola Pero <n.pero@mi.flashnet.it>
+ * Tue Sep 19 4:34AM
+ */
+
+#include <objc/objc.h>
+
+@protocol MyProtocol
++ (oneway void) methodA;
+@end
+
+@interface MyObject <MyProtocol>
+@end
+
+@implementation MyObject
++ (oneway void) methodA
+{
+ printf ("methodA\n");
+}
++ initialize { return self; }
+@end
+
+int main (void)
+{
+ [MyObject methodA];
+
+ return 0;
+}
+
+