Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
d93d7348
Commit
d93d7348
authored
Oct 07, 2009
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of errors for typeof test.
parent
310a6920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
tests/run/typeof.pyx
tests/run/typeof.pyx
+15
-13
No files found.
tests/run/typeof.pyx
View file @
d93d7348
...
@@ -30,14 +30,14 @@ cdef struct X:
...
@@ -30,14 +30,14 @@ cdef struct X:
double
complex
b
double
complex
b
def
simple
():
def
simple
():
cdef
int
i
cdef
int
i
=
0
cdef
long
l
cdef
long
l
=
0
cdef
long
long
ll
cdef
long
long
ll
=
0
cdef
int
*
iptr
cdef
int
*
iptr
=
&
i
cdef
int
**
iptrptr
cdef
int
**
iptrptr
=
&
iptr
cdef
A
a
cdef
A
a
=
None
cdef
B
b
cdef
B
b
=
None
cdef
X
x
cdef
X
x
=
X
(
a
=
1
,
b
=
2
)
print
typeof
(
i
)
print
typeof
(
i
)
print
typeof
(
l
)
print
typeof
(
l
)
print
typeof
(
ll
)
print
typeof
(
ll
)
...
@@ -47,14 +47,16 @@ def simple():
...
@@ -47,14 +47,16 @@ def simple():
print
typeof
(
b
)
print
typeof
(
b
)
print
typeof
(
x
)
print
typeof
(
x
)
print
typeof
(
None
)
print
typeof
(
None
)
used
=
i
,
l
,
ll
,
<
long
>
iptr
,
<
long
>
iptrptr
,
a
,
b
,
x
def
expression
():
def
expression
():
cdef
X
x
cdef
X
x
=
X
(
a
=
1
,
b
=
2
)
cdef
X
*
xptr
cdef
X
*
xptr
=
&
x
cdef
short
s
cdef
short
s
=
0
cdef
int
i
cdef
int
i
=
0
cdef
unsigned
int
ui
cdef
unsigned
int
ui
=
0
print
typeof
(
x
.
a
)
print
typeof
(
x
.
a
)
print
typeof
(
xptr
.
b
)
print
typeof
(
xptr
.
b
)
print
typeof
(
s
+
i
)
print
typeof
(
s
+
i
)
print
typeof
(
i
+
ui
)
print
typeof
(
i
+
ui
)
used
=
x
,
<
long
>
xptr
,
s
,
i
,
ui
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment