diff options
author | Björn Gustavsson <[email protected]> | 2013-07-12 08:21:26 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2013-08-30 10:13:16 +0200 |
commit | bf13576de7f8a3cd56a268e3bf9cdf6535ea2334 (patch) | |
tree | af834c5f8a1064b61b38db8736bd5dea6655e930 /lib/asn1/test/asn1_SUITE_data/Param.asn1 | |
parent | 8b1a8bfb5d339350979341a39eb6ad6c338d6147 (diff) | |
download | otp-bf13576de7f8a3cd56a268e3bf9cdf6535ea2334.tar.gz otp-bf13576de7f8a3cd56a268e3bf9cdf6535ea2334.tar.bz2 otp-bf13576de7f8a3cd56a268e3bf9cdf6535ea2334.zip |
Extend the test for parameterized information objects
Diffstat (limited to 'lib/asn1/test/asn1_SUITE_data/Param.asn1')
-rw-r--r-- | lib/asn1/test/asn1_SUITE_data/Param.asn1 | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE_data/Param.asn1 b/lib/asn1/test/asn1_SUITE_data/Param.asn1 index b2987a7885..4eff0da781 100644 --- a/lib/asn1/test/asn1_SUITE_data/Param.asn1 +++ b/lib/asn1/test/asn1_SUITE_data/Param.asn1 @@ -88,6 +88,28 @@ POS2 {CONFIG-DATA:obj} ::= OCTET STRING (SIZE(obj.&minLevel .. obj.&maxLevel)) OS2 ::= POS2 {config-data} +-- +-- Test a CLASS without the user-friendly syntax. +-- + +CL ::= CLASS { + &code INTEGER UNIQUE, + &Data +} + +P{T} ::= CHOICE { a INTEGER, b T } + +o1 CL ::= { + &code 42, + &Data P{BOOLEAN} +} + +SetCL CL ::= { o1 } + +Scl ::= SEQUENCE { + code CL.&code ({SetCL}), + data CL.&Data ({SetCL}{@code}) +} END |