Support ternary conditionals (a ? b : c) in constant expressions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@9330 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Olly Betts 2006-09-23 09:35:31 +00:00
commit 4c1b1332a5
4 changed files with 22 additions and 3 deletions

View file

@ -46,7 +46,17 @@ class X {};
%}
// bug 1338527
// bug #994301
%inline %{
template<int foo> class X994301 {};
%}
%template(X994301_ternary) X<(7 >= 4) ? 1 + 1 : 1>;
// bug #1338527 (still broken)
%inline %{