summaryrefslogtreecommitdiff
path: root/gcc/testsuite/objc/execute/bycopy-1.m
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/objc/execute/bycopy-1.m')
-rw-r--r--gcc/testsuite/objc/execute/bycopy-1.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/objc/execute/bycopy-1.m b/gcc/testsuite/objc/execute/bycopy-1.m
new file mode 100644
index 000000000..c719d27d1
--- /dev/null
+++ b/gcc/testsuite/objc/execute/bycopy-1.m
@@ -0,0 +1,19 @@
+/*
+ * Contributed by Nicola Pero <nicola@brainstorm.co.uk>
+ * Fri Feb 2 11:48:01 GMT 2001
+ */
+
+#include "../../objc-obj-c++-shared/Protocol1.h"
+
+@protocol MyProtocol
+- (bycopy id) bycopyMethod;
+@end
+
+int main (void)
+{
+ [nil bycopyMethod];
+
+ exit (0);
+}
+
+