Add test for memoryview of extension type
Add test for memoryview of extension type

A test for a bug fixed in commit 478b939a4c99a77c0863cfd.

v2: add commit link above
v3: # tag: instead of # tags:, drop cpp tag as it means something different
    that I originally thought

There was a bug that produced C code where gcc emitted warnings:
extension_type_memoryview.c: In function ‘__pyx_pf_25extension_type_memoryview_test_getitem’:
extension_type_memoryview.c:1468:15: warning: assignment from incompatible pointer type
extension_type_memoryview.c: In function ‘__pyx_pf_25extension_type_memoryview_2test_getitem_typed’:
extension_type_memoryview.c:1565:15: warning: assignment from incompatible pointer type
extension_type_memoryview.c:1568:18: warning: assignment from incompatible pointer type

And g++ failed with errors:
extension_type_memoryview.c: In function ‘PyObject* __pyx_pf_25extension_type_memoryview_test_getitem(PyObject*)’:
extension_type_memoryview.c:1468:213: error: cannot convert ‘__pyx_obj_25extension_type_memoryview_ExtensionType*’ to ‘PyObject*’ in assignment
extension_type_memoryview.c: In function ‘PyObject* __pyx_pf_25extension_type_memoryview_2test_getitem_typed(PyObject*)’:
extension_type_memoryview.c:1565:213: error: cannot convert ‘__pyx_obj_25extension_type_memoryview_ExtensionType*’ to ‘PyObject*’ in assignment
extension_type_memoryview.c:1568:20: error: cannot convert ‘PyObject*’ to ‘__pyx_obj_25extension_type_memoryview_ExtensionType*’ in assignment

scoder/cython,roxyboy/cython,hhsprings/cython,acrispin/cython,fperez/cython,madjar/cython,hickford/cython,achernet/cython,ChristopherHogan/cython,fperez/cython,fabianrost84/cython,ChristopherHogan/cython,fperez/cython,encukou/cython,JelleZijlstra/cython,hickford/cython,mrGeen/cython,da-woods/cython,mrGeen/cython,hhsprings/cython,mcanthony/cython,slonik-az/cython,mrGeen/cython,roxyboy/cython,roxyboy/cython,acrispin/cython,da-woods/cython,dahebolangkuan/cython,mcanthony/cython,andreasvc/cython,achernet/cython,cython/cython,andreasvc/cython,andreasvc/cython,mcanthony/cython,hickford/cython,madjar/cython,encukou/cython,acrispin/cython,achernet/cython,mcanthony/cython,c-blake/cython,ABcDexter/cython,JelleZijlstra/cython,dahebolangkuan/cython,madjar/cython,madjar/cython,JelleZijlstra/cython,acrispin/cython,marscher/cython,encukou/cython,fperez/cython,c-blake/cython,slonik-az/cython,hhsprings/cython,marscher/cython,JelleZijlstra/cython,fabianrost84/cython,slonik-az/cython,ABcDexter/cython,roxyboy/cython,cython/cython,hhsprings/cython,mcanthony/cython,slonik-az/cython,slonik-az/cython,fabianrost84/cython,marscher/cython,hickford/cython,scoder/cython,achernet/cython,c-blake/cython,ABcDexter/cython,marscher/cython,scoder/cython,encukou/cython,fperez/cython,ChristopherHogan/cython,ABcDexter/cython,cython/cython,dahebolangkuan/cython,da-woods/cython,andreasvc/cython,fabianrost84/cython,madjar/cython,acrispin/cython,c-blake/cython,ABcDexter/cython,andreasvc/cython,cython/cython,JelleZijlstra/cython,encukou/cython,scoder/cython,hickford/cython,da-woods/cython,fabianrost84/cython,mrGeen/cython,dahebolangkuan/cython,mrGeen/cython,c-blake/cython,dahebolangkuan/cython,achernet/cython,roxyboy/cython,marscher/cython,hhsprings/cython