Commit c8665b07 authored by Robert Bradshaw's avatar Robert Bradshaw

Add tags to test files.

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