Commit 07159942 authored by Stefan Behnel's avatar Stefan Behnel

test case cleanup, removes some gcc warnings

--HG--
rename : tests/compile/varargdecl.pyx => tests/run/varargdecl.pyx
parent 8755e2ff
......@@ -7,7 +7,7 @@ cdef class Swallow:
pass
def f(Grail g):
cdef int i
cdef int i = 0
cdef Swallow s
g = x
x = g
......
def f(a, b):
cdef int i
cdef int i = 5
while a:
x = 1
......
......@@ -3,3 +3,6 @@ cdef void f() with gil:
cdef int g(void* x) with gil:
pass
f()
g("test")
......@@ -6,6 +6,9 @@ __doc__ = u"""
>>> modint(9,2)
1
>>> print modptr()
spameggs
"""
def modobj(obj2, obj3):
......@@ -17,11 +20,10 @@ def modint(int int2, int int3):
int1 = int2 % int3
return int1
cdef modptr():
# FIXME!!!
def modptr():
cdef char *str2, *str3
str2 = "spam"
str2 = "spam%s"
str3 = "eggs"
obj1 = str2 % str3
return obj1
return obj1.decode(u"ASCII")
__doc__ = u"""
>>> test()
"""
cdef grail(char *blarg, ...):
pass
def test():
grail("test")
grail("test", "toast")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment