aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-09-02 13:16:53 +0200
committerBjörn Gustavsson <[email protected]>2015-01-12 11:40:24 +0100
commit33b19f4ed08f84459ed762dbb50ea0cf148ebfd3 (patch)
treeb52738b8a711fddf218bfa16df02335a865d6a9c /lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1
parent8e43bffda5069aecdd2375eb409e9c03b7ff692b (diff)
downloadotp-33b19f4ed08f84459ed762dbb50ea0cf148ebfd3.tar.gz
otp-33b19f4ed08f84459ed762dbb50ea0cf148ebfd3.tar.bz2
otp-33b19f4ed08f84459ed762dbb50ea0cf148ebfd3.zip
Rewrite matching of object definitions using the simplified syntax
Rewrite the confusing and buggy matching of an object definition against the simplified syntax. While we are at it, we will also add proper error handling.
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn135
1 files changed, 35 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1 b/lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1
index 4a8889f940..0ee8e178fd 100644
--- a/lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1
+++ b/lib/asn1/test/asn1_SUITE_data/InfObjExtract.asn1
@@ -20,6 +20,13 @@ ObjSet DATA-CLASS ::= {
...
}
+OBJ-SET DATA-CLASS ::= {
+ holder-object-1.&obj |
+ data-object-2 |
+ data-object-3,
+ ...
+}
+
holder-object-1 HOLDER-CLASS ::= {
OBJ data-object-1
}
@@ -32,6 +39,29 @@ holder-object-3 HOLDER-CLASS ::= {
OBJ-SET {holder-object-2.&ObjSet}
}
+-- Note: References to object sets with names in all uppercase/hyphens
+-- may be represented differently compared to object sets with names
+-- that contain lowercase letters. CAVEAT TESTOR.
+
+HOLDER-OBJECTS HOLDER-CLASS ::= { holder-object-2 }
+HolderObjects HOLDER-CLASS ::= { holder-object-3 }
+
+holder-object-4 HOLDER-CLASS ::= {
+ OBJ-SET { HOLDER-OBJECTS.&ObjSet }
+}
+
+holder-object-5 HOLDER-CLASS ::= {
+ OBJ-SET { HolderObjects.&ObjSet }
+}
+
+holder-object-6 HOLDER-CLASS ::= {
+ OBJ-SET { OBJ-SET }
+}
+
+holder-object-7 HOLDER-CLASS ::= {
+ OBJ-SET { ObjSet }
+}
+
HOLDER-CLASS ::= CLASS {
&obj DATA-CLASS OPTIONAL,
&ObjSet DATA-CLASS OPTIONAL
@@ -48,4 +78,9 @@ TestSeq{DATA-CLASS:ObjectSet} ::= SEQUENCE {
DataSeq-1 ::= TestSeq{ {ObjSet} }
DataSeq-2 ::= TestSeq{ {holder-object-3.&ObjSet} }
+DataSeq-3 ::= TestSeq{ {holder-object-4.&ObjSet} }
+DataSeq-4 ::= TestSeq{ {holder-object-5.&ObjSet} }
+DataSeq-5 ::= TestSeq{ {holder-object-6.&ObjSet} }
+DataSeq-6 ::= TestSeq{ {holder-object-7.&ObjSet} }
+
END