aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/TConstr.asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <bjorn@erlang.org>2013-08-29 13:06:30 +0200
committerBjörn Gustavsson <bjorn@erlang.org>2013-08-30 10:13:17 +0200
commit8fb5a3b6241a988c80dc1faac9bfb396c1aa32b7 (patch)
tree7965eb63243f4b2648e90c81b314bbed3a1ca45d /lib/asn1/test/asn1_SUITE_data/TConstr.asn1
parenta5c7d1c0ecd8a8b78ae162aeb735501ef49e014b (diff)
downloadotp-8fb5a3b6241a988c80dc1faac9bfb396c1aa32b7.tar.gz
otp-8fb5a3b6241a988c80dc1faac9bfb396c1aa32b7.tar.bz2
otp-8fb5a3b6241a988c80dc1faac9bfb396c1aa32b7.zip
Improve tests of deep table constraints
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/TConstr.asn1')
-rw-r--r--lib/asn1/test/asn1_SUITE_data/TConstr.asn134
1 files changed, 34 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/TConstr.asn1 b/lib/asn1/test/asn1_SUITE_data/TConstr.asn1
index e2e0a11dc4..b2b2de2f56 100644
--- a/lib/asn1/test/asn1_SUITE_data/TConstr.asn1
+++ b/lib/asn1/test/asn1_SUITE_data/TConstr.asn1
@@ -58,6 +58,40 @@ Deeper ::= SEQUENCE {
b SEQUENCE {ba INTEGER, bb MYCLASS.&Type ({ObjectSet}{@a.s.ab})}
}
+Seq3 ::= SEQUENCE {
+ a SEQUENCE {
+ aa INTEGER,
+ ab MYCLASS.&id ({ObjectSet})
+ },
+ -- Multiple references from the same SEQUENCE...
+ b SEQUENCE {
+ ba MYCLASS.&Type ({ObjectSet}{@a.ab}),
+ bb MYCLASS.&Result ({ObjectSet}{@a.ab}),
+ -- ... and references from multiple SEQUENCEs...
+ bc SEQUENCE {
+ bca MYCLASS.&Result ({ObjectSet}{@a.ab}),
+ bcb MYCLASS.&Type ({ObjectSet}{@a.ab})
+ }
+ }
+}
+
+Seq3-Opt ::= SEQUENCE {
+ a SEQUENCE {
+ aa INTEGER,
+ ab MYCLASS.&id ({ObjectSet})
+ },
+ -- Multiple references from the same SEQUENCE...
+ b SEQUENCE {
+ ba MYCLASS.&Type ({ObjectSet}{@a.ab}) OPTIONAL,
+ bb MYCLASS.&Result ({ObjectSet}{@a.ab}) OPTIONAL,
+ -- ... and references from multiple SEQUENCEs...
+ bc SEQUENCE {
+ bca MYCLASS.&Result ({ObjectSet}{@a.ab}),
+ bcb MYCLASS.&Type ({ObjectSet}{@a.ab})
+ } OPTIONAL
+ }
+}
+
-- following from Peter's definitions