aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-09-04 04:41:35 +0000
committerLev Walkin <vlm@lionet.info>2004-09-04 04:41:35 +0000
commita08f54d9e2093ad9efee8a26ef7889576fb40e7d (patch)
tree944fc9fdabe139b7c935dee82d8dff32428e03d0 /tests
parent1f670c1198a6435b339f3a5a3f7f41888c3b0288 (diff)
tests for ANY type
Diffstat (limited to 'tests')
-rw-r--r--tests/60-any-OK.asn124
-rw-r--r--tests/60-any-OK.asn1.-EF18
2 files changed, 42 insertions, 0 deletions
diff --git a/tests/60-any-OK.asn1 b/tests/60-any-OK.asn1
new file mode 100644
index 00000000..ca73358c
--- /dev/null
+++ b/tests/60-any-OK.asn1
@@ -0,0 +1,24 @@
+
+-- OK: Everything is fine
+
+-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
+-- .spelio.software.asn1c.test (9363.1.5.1)
+-- .60
+
+ModuleTestANY
+ { iso org(3) dod(6) internet(1) private(4) enterprise(1)
+ spelio(9363) software(1) asn1c(5) test(1) 60 }
+ DEFINITIONS ::=
+BEGIN
+
+ T1 ::= SEQUENCE {
+ i INTEGER,
+ any ANY
+ }
+
+ T2 ::= SEQUENCE {
+ i INTEGER,
+ any [0] EXPLICIT ANY OPTIONAL
+ }
+
+END
diff --git a/tests/60-any-OK.asn1.-EF b/tests/60-any-OK.asn1.-EF
new file mode 100644
index 00000000..81dce570
--- /dev/null
+++ b/tests/60-any-OK.asn1.-EF
@@ -0,0 +1,18 @@
+
+ModuleTestANY {iso(-1) org(3) dod(6) internet(1) private(4)
+ enterprise(1) spelio(9363) software(1) asn1c(5) test(1)
+ 60 }
+DEFINITIONS ::=
+BEGIN
+
+T1 ::= SEQUENCE {
+ i INTEGER,
+ any ANY
+}
+
+T2 ::= SEQUENCE {
+ i INTEGER,
+ any [0] EXPLICIT ANY OPTIONAL
+}
+
+END