summaryrefslogtreecommitdiff
path: root/tests/compile/cdefexternblock.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compile/cdefexternblock.pyx')
-rw-r--r--tests/compile/cdefexternblock.pyx23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/compile/cdefexternblock.pyx b/tests/compile/cdefexternblock.pyx
new file mode 100644
index 000000000..865a59345
--- /dev/null
+++ b/tests/compile/cdefexternblock.pyx
@@ -0,0 +1,23 @@
+# mode: compile
+# tag: struct, union, enum, cdefextern
+
+cdef extern from "cheese.h":
+
+ ctypedef int camembert
+
+ struct roquefort:
+ int x
+
+ char *swiss
+
+ void cheddar()
+
+ # FIXME: find a real declaration here.
+ #class external.runny [object runny_obj]:
+ # cdef int a
+ # def __init__(self):
+ # pass
+
+
+#cdef runny r = runny()
+#r.a = 42