Merged pull request #12 from bhy/T423.
[cython.git] / tests / errors / e_cstruct.pyx
index 3f7e9a6e207a6a9b8e328088e29ddb5b4a0343fa..3d4ce9b143c5fd79afaed6cfff5f5ad5b789456e 100644 (file)
@@ -1,3 +1,5 @@
+# mode: error
+
 cdef struct Spam:
        int i
        char c
@@ -22,10 +24,10 @@ cdef void eggs(Spam s):
 
 
 _ERRORS = u"""
-5:36: C struct/union member cannot be a Python object
-15:6: Object of type 'Spam' has no attribute 'k'
-16:6: Cannot assign type 'float *[42]' to 'int'
-17:21: Cannot assign type 'int' to 'float *[42]'
-20:7: Cannot select attribute of incomplete type 'Grail'
-21:3: Cannot select attribute of incomplete type 'Grail'
+7:36: C struct/union member cannot be a Python object
+17:6: Object of type 'Spam' has no attribute 'k'
+18:6: Cannot assign type 'float *[42]' to 'int'
+19:21: Cannot assign type 'int' to 'float *[42]'
+22:7: Cannot select attribute of incomplete type 'Grail'
+23:3: Cannot select attribute of incomplete type 'Grail'
 """