Commit c8665b07 authored by Robert Bradshaw's avatar Robert Bradshaw

Add tags to test files.

parent c56ebd92
# mode: compile
cdef public struct Foo: cdef public struct Foo:
int a, b int a, b
......
# mode: compile
cdef swallow cdef swallow
def spam(w, int x = 42, y = "grail", z = swallow): def spam(w, int x = 42, y = "grail", z = swallow):
......
# mode: compile
cdef extern from *: cdef extern from *:
......
# mode: compile
cdef enum E: cdef enum E:
z z
......
# mode: compile
cdef void f1(char *argv[]): cdef void f1(char *argv[]):
f2(argv) f2(argv)
......
# mode: compile
cdef void spam(): cdef void spam():
cdef long long L cdef long long L
cdef unsigned long long U cdef unsigned long long U
......
# mode: compile
def f(a, b): def f(a, b):
assert a, a+b assert a, a+b
# mode: compile
cdef enum E: cdef enum E:
spam, eggs spam, eggs
......
# mode: compile
cdef extern from *: cdef extern from *:
ctypedef int intptr_t ctypedef int intptr_t
......
# ticket: 444
# mode: compile
def test(): def test():
cdef object[int] not_assigned_to cdef object[int] not_assigned_to
......
# mode: compile
def f(): def f():
x = open("foo") x = open("foo")
# mode: compile
cdef int f() except -1: cdef int f() except -1:
cdef object x, y, z, w cdef object x, y, z, w
cdef int i cdef int i
......
# mode: compile
# cython: boundscheck = False # cython: boundscheck = False
# cython: ignoreme = OK # cython: ignoreme = OK
# cython: warn.undeclared = False # cython: warn.undeclared = False
......
# mode: compile
cdef extern from "callingconvention.h": cdef extern from "callingconvention.h":
pass pass
......
# mode: compile
def f(obj, int i, float f, char *s1, char s2[]): def f(obj, int i, float f, char *s1, char s2[]):
pass pass
......
# mode: compile
cdef extern: cdef extern:
cdef func(int[]) cdef func(int[])
# mode: compile
cdef void foo(): cdef void foo():
cdef int bool, int1=0, int2=0, int3=0, int4=0 cdef int bool, int1=0, int2=0, int3=0, int4=0
cdef object obj1, obj2, obj3, obj4 cdef object obj1, obj2, obj3, obj4
......
# mode: compile
cdef void foo(): cdef void foo():
cdef int i1, i2=0 cdef int i1, i2=0
cdef char c1=0, c2 cdef char c1=0, c2
......
# ticket: 518
# mode: compile
cdef extern from "cast_ctypedef_array_T518_helper.h": cdef extern from "cast_ctypedef_array_T518_helper.h":
cdef struct __foo_struct: cdef struct __foo_struct:
int i, j int i, j
......
# mode: compile
cdef extern class external.Spam: cdef extern class external.Spam:
pass pass
......
# mode: compile
cdef extern from "cheese.h": cdef extern from "cheese.h":
pass pass
# mode: compile
cdef extern from *: cdef extern from *:
int spam int spam
# mode: compile
cdef enum Spam: cdef enum Spam:
a a
b, c, b, c,
......
# mode: compile
cdef int i, j, k cdef int i, j, k
cdef object a, b, x cdef object a, b, x
......
# ticket: 4
# mode: compile
from a cimport b from a cimport b
cdef int **t = b.foo(NULL) cdef int **t = b.foo(NULL)
# ticket: 248
# mode: compile
from ewing8 cimport (Foo, from ewing8 cimport (Foo,
......
# mode: compile
__doc__ = u""" __doc__ = u"""
>>> s = Swallow() >>> s = Swallow()
>>> s.spam(1) >>> s.spam(1)
......
# mode: compile
cdef extern from "cnamespec.h": cdef extern from "cnamespec.h":
int a "c_a", b "c_b" int a "c_a", b "c_b"
......
# mode: compile
def f(): def f():
cdef int int1, int2=0, int3=1 cdef int int1, int2=0, int3=1
cdef char char1=0 cdef char char1=0
......
# mode: compile
cdef void f(): cdef void f():
cdef void *p cdef void *p
cdef char *q=NULL cdef char *q=NULL
......
# mode: compile
cdef extern (int *[42]) spam, grail, swallow cdef extern (int *[42]) spam, grail, swallow
cdef (int (*)()) brian(): cdef (int (*)()) brian():
......
# mode: compile
cdef enum Grail: cdef enum Grail:
k = 42 k = 42
......
# mode: compile
cdef class Tst: cdef class Tst:
cdef foo, cdef foo,
# mode: compile
cdef class A: cdef class A:
cpdef a(self): cpdef a(self):
ma(self) ma(self)
......
# tag: cpp
# mode: compile
cdef extern from "cpp_enums.h": cdef extern from "cpp_enums.h":
cdef enum Enum1: cdef enum Enum1:
Item1 Item1
......
# tag: cpp
# mode: compile
cdef extern from "operators.h": cdef extern from "operators.h":
cdef cppclass Operators: cdef cppclass Operators:
Operators(int) Operators(int)
......
# tag: cpp
# mode: compile
cdef extern from "point.h" namespace "geometry": cdef extern from "point.h" namespace "geometry":
cdef struct Point: cdef struct Point:
......
# tag: cpp
# mode: compile
cdef extern from *: cdef extern from *:
cdef cppclass Foo[T]: cdef cppclass Foo[T]:
pass pass
......
# tag: cpp
# mode: compile
cdef extern from "templates.h": cdef extern from "templates.h":
cdef cppclass TemplateTest1[T]: cdef cppclass TemplateTest1[T]:
TemplateTest1() TemplateTest1()
......
# mode: compile
ctypedef struct Foo: ctypedef struct Foo:
int blarg int blarg
......
# mode: compile
ctypedef int *IntPtr ctypedef int *IntPtr
ctypedef unsigned long ULong ctypedef unsigned long ULong
cdef extern IntPtr spam cdef extern IntPtr spam
......
# ticket: 355
# mode: compile
ctypedef public class Time [type MyTime_Type, object MyTimeObject]: ctypedef public class Time [type MyTime_Type, object MyTimeObject]:
def __init__(self, seconds): def __init__(self, seconds):
self.seconds = seconds self.seconds = seconds
......
# mode: compile
ctypedef class spam: ctypedef class spam:
pass pass
......
# mode: compile
ctypedef enum parrot_state: ctypedef enum parrot_state:
alive = 1 alive = 1
dead = 2 dead = 2
......
# mode: compile
ctypedef public api class Foo [type PyFoo_Type, object PyFooObject]: ctypedef public api class Foo [type PyFoo_Type, object PyFooObject]:
pass pass
......
# mode: compile
ctypedef struct order: ctypedef struct order:
int spam int spam
int eggs int eggs
......
# mode: compile
ctypedef union pet: ctypedef union pet:
int cat int cat
float dog float dog
......
# mode: compile
cdef void f(): cdef void f():
cdef unsigned long x cdef unsigned long x
cdef object y=0 cdef object y=0
......
# mode: compile
cdef extern short int s cdef extern short int s
cdef extern long int l cdef extern long int l
cdef extern long long ll cdef extern long long ll
......
# mode: compile
cdef class Tomato: cdef class Tomato:
def eject(self): def eject(self):
......
# mode: compile
cdef extern from "declarations.h": cdef extern from "declarations.h":
pass pass
......
# mode: compile
def f(a, b): def f(a, b):
global g global g
del g del g
......
# mode: compile
cdef void spam(): cdef void spam():
cdef object x cdef object x
del x[17:42] del x[17:42]
......
# mode: compile
"Welcome to the parrot module. It is currently resting." "Welcome to the parrot module. It is currently resting."
def zap(polly, volts): def zap(polly, volts):
......
# mode: compile
cdef class Spam: cdef class Spam:
pass pass
......
# mode: compile
cimport dotted_cimport_submodule.a cimport dotted_cimport_submodule.a
import dotted_cimport_submodule.b import dotted_cimport_submodule.b
# mode: compile
cdef char *s cdef char *s
s = r'\"HT\"' s = r'\"HT\"'
# ticket: 488
# mode: compile
#from ... import foo #from ... import foo
print ... print ...
......
# mode: compile
cdef void f(): cdef void f():
try: try:
pass pass
......
# mode: compile
cdef enum E: cdef enum E:
a a
......
# mode: compile
cdef void foo(): cdef void foo():
cdef int bool, int1=0, int2=0 cdef int bool, int1=0, int2=0
cdef float float1=0, float2=0 cdef float float1=0, float2=0
......
# mode: compile
cdef int blarg(int i): cdef int blarg(int i):
pass pass
......
# mode: compile
cdef class C: cdef class C:
cdef f(self): cdef f(self):
pass pass
# mode: compile
cdef void f(): cdef void f():
"This is a pseudo doc string." "This is a pseudo doc string."
......
# mode: compile
cdef char *f(): cdef char *f():
raise Exception raise Exception
......
# mode: compile
# Spurious gcc3.3 warnings about incompatible pointer # Spurious gcc3.3 warnings about incompatible pointer
# types passed to C method # types passed to C method
......
# mode: compile
cdef class A: cdef class A:
cdef void f(self, x): cdef void f(self, x):
pass pass
......
# mode: compile
cdef class Blarg: cdef class Blarg:
pass pass
# mode: compile
cdef struct xmlDoc: cdef struct xmlDoc:
int i int i
# mode: compile
cdef extern from "excvalcheck.h": cdef extern from "excvalcheck.h":
pass pass
......
# mode: compile
cdef int spam() except 42: cdef int spam() except 42:
pass pass
......
# mode: compile
cdef int spam() except -1: cdef int spam() except -1:
eggs = 42 eggs = 42
......
# mode: compile
cdef extern class somewhere.Swallow: cdef extern class somewhere.Swallow:
pass pass
......
# mode: compile
cdef class Spam: cdef class Spam:
cdef int tons cdef int tons
......
# mode: compile
cdef class Grail: cdef class Grail:
def __add__(int x, float y): def __add__(int x, float y):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __delattr__(self, n): def __delattr__(self, n):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __delitem__(self, i): def __delitem__(self, i):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __delslice__(self, Py_ssize_t i, Py_ssize_t j): def __delslice__(self, Py_ssize_t i, Py_ssize_t j):
......
# mode: compile
cdef class Foo: cdef class Foo:
def __delete__(self, i): def __delete__(self, i):
......
# mode: compile
cdef class Foo: cdef class Foo:
def __get__(self, i, c): def __get__(self, i, c):
......
# mode: compile
cdef class Foo: cdef class Foo:
def __set__(self, i, v): def __set__(self, i, v):
......
# mode: compile
cdef extern int i cdef extern int i
cdef extern char *s[] cdef extern char *s[]
cdef extern void spam(char c) cdef extern void spam(char c)
......
# mode: compile
cdef extern class external.Spam [object SpamObject]: cdef extern class external.Spam [object SpamObject]:
pass pass
......
# mode: compile
cdef class Spam cdef class Spam
cdef class Grail: cdef class Grail:
......
# mode: compile
cdef class Spam: cdef class Spam:
def __getattr__(self, x): def __getattr__(self, x):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __getitem__(self, x): def __getitem__(self, x):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __hash__(self): def __hash__(self):
......
# mode: compile
cdef extern class Spam.Eggs.Ham: cdef extern class Spam.Eggs.Ham:
pass pass
......
# mode: compile
from crunchytype cimport Crunchy from crunchytype cimport Crunchy
cdef class Sub2(Crunchy): cdef class Sub2(Crunchy):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __index__(self): def __index__(self):
......
# mode: compile
cdef class Parrot: cdef class Parrot:
pass pass
......
# mode: compile
cdef class Parrot: cdef class Parrot:
pass pass
......
# mode: compile
cdef class Spam: cdef class Spam:
property eggs: property eggs:
......
# mode: compile
cdef class Spam: cdef class Spam:
property eggs: property eggs:
......
# mode: compile
cdef class Spam: cdef class Spam:
property eggs: property eggs:
......
# mode: compile
cdef class Spam: cdef class Spam:
property eggs: property eggs:
......
# mode: compile
cdef class Spam: cdef class Spam:
property eggs: property eggs:
......
# mode: compile
cdef class Spam: cdef class Spam:
cdef public char c cdef public char c
cdef public int i cdef public int i
......
# mode: compile
cdef class Spam: cdef class Spam:
def __setattr__(self, n, x): def __setattr__(self, n, x):
......
# mode: compile
cdef class Spam: cdef class Spam:
def __setitem__(self, i, x): def __setitem__(self, i, x):
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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