summaryrefslogtreecommitdiff
path: root/tests/headers/objc_interface.h
diff options
context:
space:
mode:
authorMikko Lehtonen <scoopr@iki.fi>2017-01-29 01:10:38 +0200
committerMikko Lehtonen <scoopr@iki.fi>2017-01-31 11:57:45 +0200
commit4736263931176916c3c21a51795dd3ad74e62e3d (patch)
treeac6d5e0e77a54d932c6c9686a3f978d04d8ef1ee /tests/headers/objc_interface.h
parentbdd034b07a02a1a886ac8b94a81327608f6124b3 (diff)
Add initial Objective C support
It parses interfaces and protocol but ignores base classes, and their methods which don’t have arguments, the method signature is currently ignored. Also you can pass objc class instances to C functions. Next steps are inheritance/base classes, method signatures, properties, categories. Then check with system headers what is missing.
Diffstat (limited to 'tests/headers/objc_interface.h')
-rw-r--r--tests/headers/objc_interface.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/headers/objc_interface.h b/tests/headers/objc_interface.h
new file mode 100644
index 00000000..af84bf92
--- /dev/null
+++ b/tests/headers/objc_interface.h
@@ -0,0 +1,8 @@
+// bindgen-flags: --objc-extern-crate -- -x objective-c
+// bindgen-osx-only
+
+@interface Foo
+@end
+
+@protocol bar
+@end