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
Boxiang Sun
cython
Commits
9330be0f
Commit
9330be0f
authored
Sep 19, 2012
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Another const test.
parent
8c4a6299
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
tests/errors/const_decl_errors.pyx
tests/errors/const_decl_errors.pyx
+10
-5
No files found.
tests/errors/const_decl_errors.pyx
View file @
9330be0f
...
...
@@ -7,15 +7,20 @@ cdef const object o
# as it's not needed for agreeing with external libraries.
cdef
const
int
x
=
10
cdef
func
(
const
int
a
,
const
int
*
b
,
const
(
int
*
)
c
):
cdef
struct
S
:
int
member
cdef
func
(
const
int
a
,
const
int
*
b
,
const
(
int
*
)
c
,
const
S
s
):
a
=
10
b
[
0
]
=
100
c
=
NULL
b
[
0
]
=
100
s
.
member
=
1000
_ERRORS
=
"""
3:5: Const base type cannot be a Python object
8:5: Assignment to const 'x'
11:6: Assignment to const 'a'
12:5: Assignment to const dereference
13:6: Assignment to const 'c'
14:6: Assignment to const 'a'
15:6: Assignment to const 'c'
16:5: Assignment to const dereference
17:5: Assignment to const attribute 'member'
"""
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