trac #562: test case for segmentation fault
authorCarl Witty <Carl.Witty@gmail.com>
Tue, 27 Jul 2010 23:35:46 +0000 (16:35 -0700)
committerCarl Witty <Carl.Witty@gmail.com>
Tue, 27 Jul 2010 23:35:46 +0000 (16:35 -0700)
tests/run/ipow_crash_T562.pyx [new file with mode: 0644]

diff --git a/tests/run/ipow_crash_T562.pyx b/tests/run/ipow_crash_T562.pyx
new file mode 100644 (file)
index 0000000..f231322
--- /dev/null
@@ -0,0 +1,6 @@
+cdef class CrashIPOW:
+    """
+    >>> CrashIPOW().__ipow__('a')
+    """
+    def __ipow__(self, other, mod):
+        print "%s, %s" % (other, mod)