summaryrefslogtreecommitdiff
path: root/cpp/test/IceXML/encoding/Test.ice
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2002-01-29 02:03:02 +0000
committerMatthew Newhook <matthew@zeroc.com>2002-01-29 02:03:02 +0000
commit1a347f053ed10e965411c4768567d3c6d0b0e424 (patch)
tree56685aadd79e5e7b954850369616e4d7915dbe1b /cpp/test/IceXML/encoding/Test.ice
parentfix (diff)
downloadice-1a347f053ed10e965411c4768567d3c6d0b0e424.tar.bz2
ice-1a347f053ed10e965411c4768567d3c6d0b0e424.tar.xz
ice-1a347f053ed10e965411c4768567d3c6d0b0e424.zip
Added test/IceXML/encoding. Various bug fixes for IceXML.
Diffstat (limited to 'cpp/test/IceXML/encoding/Test.ice')
-rw-r--r--cpp/test/IceXML/encoding/Test.ice85
1 files changed, 85 insertions, 0 deletions
diff --git a/cpp/test/IceXML/encoding/Test.ice b/cpp/test/IceXML/encoding/Test.ice
new file mode 100644
index 00000000000..3bd29c03d86
--- /dev/null
+++ b/cpp/test/IceXML/encoding/Test.ice
@@ -0,0 +1,85 @@
+// **********************************************************************
+//
+// Copyright (c) 2001
+// MutableRealms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef TEST_ICE
+#define TEST_ICE
+
+module Test
+{
+
+struct Struct1
+{
+ long l;
+};
+
+struct Struct2
+{
+ Struct1 s1;
+};
+
+struct Struct3
+{
+ long l;
+ Struct2 s2;
+};
+
+struct Struct4
+{
+ Struct3 s3;
+ long l;
+};
+
+sequence<Struct4> Struct4Seq;
+
+dictionary<string, Struct4> StringStruct4Dict;
+
+dictionary<Struct3, Struct4> Struct3Struct4Dict;
+
+enum Color
+{
+ Red,
+ Green,
+ Blue
+};
+
+sequence<Color> ColorSeq;
+
+class Class1
+{
+ Color c;
+ string name;
+};
+
+class Class2 extends Class1
+{
+ Class2 r;
+};
+
+interface Interface1
+{
+ void if1();
+};
+
+class Class3 extends Class2 implements Interface1
+{
+};
+
+exception Exception1
+{
+};
+
+exception Exception2 extends Exception1
+{
+ string msg;
+};
+
+};
+
+#endif