Apply patch #2955146 from Sergey Satskiy to fix expressions containing divide by operator in constructor initialization lists.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12013 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
5ff1e34ee6
commit
68308583b7
4 changed files with 19 additions and 0 deletions
|
|
@ -193,6 +193,7 @@ CPP_TEST_CASES += \
|
|||
extern_c \
|
||||
extern_namespace \
|
||||
extern_throws \
|
||||
expressions \
|
||||
features \
|
||||
fragments \
|
||||
friends \
|
||||
|
|
|
|||
10
Examples/test-suite/expressions.i
Normal file
10
Examples/test-suite/expressions.i
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
%module expressions
|
||||
|
||||
%inline %{
|
||||
struct A
|
||||
{
|
||||
A() : k( 20/(5-1) ) {}
|
||||
A(int i) : k( 20/(5-1)*i /* comment */ ) {}
|
||||
int k;
|
||||
};
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue