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
1e6883c1
Commit
1e6883c1
authored
Oct 27, 2018
by
Nicolas Pauss
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2685_warn_undeclared: add test for warn.undeclared.
parent
e5576436
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
tests/errors/w_undeclared.pyx
tests/errors/w_undeclared.pyx
+20
-0
No files found.
tests/errors/w_undeclared.pyx
0 → 100644
View file @
1e6883c1
# cython: warn.undeclared=True
# mode: error
# tag: werror
def
foo
():
a
=
1
return
a
cdef
class
Bar
:
cdef
int
baz
(
self
,
a
):
res
=
0
for
i
in
range
(
3
):
res
+=
i
return
res
_ERRORS
=
"""
6:4: implicit declaration of 'a'
11:8: implicit declaration of 'res'
12:12: implicit declaration of 'i'
"""
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