From: Dag Sverre Seljebotn Date: Thu, 14 Aug 2008 18:28:21 +0000 (+0200) Subject: Testcase breaking switch optimization X-Git-Tag: 0.9.9.2.beta~101 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=c5c7012c2dc11383f051da4fe475a5ebecae66bd;p=cython.git Testcase breaking switch optimization --- diff --git a/tests/errors/e_switch.pyx b/tests/errors/e_switch.pyx new file mode 100644 index 00000000..405fd010 --- /dev/null +++ b/tests/errors/e_switch.pyx @@ -0,0 +1,12 @@ +cdef int x = 3 + +if x == NONEXISTING: + print 2 +elif x == 2: + print 2342 +elif x == 4: + print 34 + +_ERRORS = """ +4:23: undeclared name not builtin: NONEXISTING +"""