From c5c7012c2dc11383f051da4fe475a5ebecae66bd Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Thu, 14 Aug 2008 20:28:21 +0200 Subject: [PATCH] Testcase breaking switch optimization --- tests/errors/e_switch.pyx | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/errors/e_switch.pyx 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 +""" -- 2.26.2