summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/expressions.i
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/expressions.i')
-rw-r--r--trunk/Examples/test-suite/expressions.i10
1 files changed, 10 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/expressions.i b/trunk/Examples/test-suite/expressions.i
new file mode 100644
index 000000000..7b907ec3b
--- /dev/null
+++ b/trunk/Examples/test-suite/expressions.i
@@ -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;
+};
+%}