summaryrefslogtreecommitdiff
path: root/Examples/test-suite/chartest.i
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2016-01-26 20:16:47 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2016-01-26 20:16:47 +0000
commit62c34fc9d94f15046b40cc3d488972eb3fdc8e89 (patch)
tree642bdbce042357b234bab3a0429615f178ac1a15 /Examples/test-suite/chartest.i
parent2ad0e784ab148ec6bc93df69dc59f5db56f71ad8 (diff)
downloadswig-62c34fc9d94f15046b40cc3d488972eb3fdc8e89.tar.gz
Add tests for enum values and static const member variables chars containing escape sequences
Diffstat (limited to 'Examples/test-suite/chartest.i')
-rw-r--r--Examples/test-suite/chartest.i19
1 files changed, 19 insertions, 0 deletions
diff --git a/Examples/test-suite/chartest.i b/Examples/test-suite/chartest.i
index e81cf54a4..cc30b51bc 100644
--- a/Examples/test-suite/chartest.i
+++ b/Examples/test-suite/chartest.i
@@ -12,4 +12,23 @@ char GetUnprintableChar() {
return 0x7F;
}
+static const char globchar0 = '\0';
+static const char globchar1 = '\1';
+static const char globchar2 = '\n';
+static const char globcharA = 'A';
+static const char globcharB = '\102'; // B
+static const char globcharC = '\x43'; // C
+static const char globcharD = 0x44; // D
+static const char globcharE = 69; // E
+
+struct CharTestClass {
+ static const char memberchar0 = '\0';
+ static const char memberchar1 = '\1';
+ static const char memberchar2 = '\n';
+ static const char membercharA = 'A';
+ static const char membercharB = '\102'; // B
+ static const char membercharC = '\x43'; // C
+ static const char membercharD = 0x44; // D
+ static const char membercharE = 69; // E
+};
%}