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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
da1a7d09
Commit
da1a7d09
authored
Mar 11, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check for warnings in some C++ tests.
parent
82b3d74b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
4 deletions
+11
-4
tests/compile/cpp_class_redefinition.pyx
tests/compile/cpp_class_redefinition.pyx
+1
-1
tests/run/cpp_class_redef.pyx
tests/run/cpp_class_redef.pyx
+8
-2
tests/run/cpp_template_functions.pyx
tests/run/cpp_template_functions.pyx
+2
-1
No files found.
tests/compile/cpp_class_redefinition.pyx
View file @
da1a7d09
# tag: cpp
# mode: compile
# mode: compile
# tag: cpp, warnings
cdef
extern
from
"templates.h"
:
cdef
extern
from
"templates.h"
:
cdef
cppclass
TemplateTest1
[
T
]:
cdef
cppclass
TemplateTest1
[
T
]:
...
...
tests/run/cpp_class_redef.pyx
View file @
da1a7d09
# tag: cpp
# mode: run
# tag: cpp, warnings
# This gives a warning, but should not give an error.
# This gives a warning
about the previous .pxd definition
, but should not give an error.
cdef
cppclass
Foo
:
cdef
cppclass
Foo
:
int
_foo
int
_foo
int
get_foo
():
int
get_foo
():
...
@@ -20,3 +21,8 @@ def test_Foo(n):
...
@@ -20,3 +21,8 @@ def test_Foo(n):
return
foo
.
get_foo
()
return
foo
.
get_foo
()
finally
:
finally
:
del
foo
del
foo
_WARNINGS
=
"""
5:5: 'Foo' already defined (ignoring second definition)
"""
tests/run/cpp_template_functions.pyx
View file @
da1a7d09
# tag: cpp
# mode: run
# tag: cpp, warnings
cimport
cython
cimport
cython
from
libcpp.pair
cimport
pair
from
libcpp.pair
cimport
pair
...
...
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