summaryrefslogtreecommitdiff
path: root/Examples/test-suite/cpp11_constexpr.i
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/cpp11_constexpr.i')
-rw-r--r--Examples/test-suite/cpp11_constexpr.i3
1 files changed, 3 insertions, 0 deletions
diff --git a/Examples/test-suite/cpp11_constexpr.i b/Examples/test-suite/cpp11_constexpr.i
index 5ba9ff243..d830d984a 100644
--- a/Examples/test-suite/cpp11_constexpr.i
+++ b/Examples/test-suite/cpp11_constexpr.i
@@ -39,6 +39,9 @@ struct ConstExpressions {
// Regression tests for https://github.com/swig/swig/issues/284 :
explicit constexpr ConstExpressions(int) { }
constexpr explicit ConstExpressions(double) { }
+ // Regression tests for https://github.com/swig/swig/issues/2079 :
+ constexpr friend bool operator==(ConstExpressions,ConstExpressions) { return true; }
+ friend constexpr bool operator!=(ConstExpressions,ConstExpressions) { return false; }
};
%}