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
26462a2a
Commit
26462a2a
authored
Jul 28, 2015
by
scoder
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #422 from shaishasag/master
Added tests for cpp auto conversion of function parametes
parents
e50889a2
a1935b0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
tests/errors/cpp_no_auto_conversion.pyx
tests/errors/cpp_no_auto_conversion.pyx
+23
-0
No files found.
tests/errors/cpp_no_auto_conversion.pyx
0 → 100644
View file @
26462a2a
# mode: error
# tag: cpp
# cpp will convert function arguments to a type if it has suitable constructor
# we do not want that when calling from cython
cdef
extern
from
"no_such_file.cpp"
nogil
:
cppclass
wrapped_int
:
long
long
val
wrapped_int
()
wrapped_int
(
long
long
val
)
wrapped_int
&
operator
=
(
const
wrapped_int
&
other
)
wrapped_int
&
operator
=
(
const
long
long
other
)
long
long
constructor_overload
(
const
wrapped_int
&
x
)
long
long
constructor_overload
(
const
wrapped_int
x
)
cdef
long
long
e
=
constructor_overload
(
17
)
_ERRORS
=
u"""
18:40: Cannot assign type 'long' to 'const wrapped_int'
"""
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