Commit a7f25564 authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Testcases for #303

parent 65364b1b
typedef double DoubleTypedef;
"""
>>> f()
42.0 42.0
"""
cdef extern from "external_defs.h":
ctypedef float DoubleTypedef
cdef class MyClass:
cdef readonly:
double var_d
DoubleTypedef var_nf
def __init__(self):
self.var_d = 42.0
self.var_nf = 42.0
def f():
c = MyClass()
print c.var_d, c.var_nf
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment