diff options
Diffstat (limited to 'tests/errors/duplicate_const.pyx')
-rw-r--r-- | tests/errors/duplicate_const.pyx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/errors/duplicate_const.pyx b/tests/errors/duplicate_const.pyx new file mode 100644 index 000000000..1367dd13b --- /dev/null +++ b/tests/errors/duplicate_const.pyx @@ -0,0 +1,13 @@ +# mode: error + +cdef extern from *: + cdef const const int a + cdef const volatile int b + cdef volatile const int c + cdef volatile volatile int d + + +_ERRORS = """ +4:9: Duplicate 'const' +7:9: Duplicate 'volatile' +""" |