aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2013-02-06 13:27:42 +0100
committerBjörn Gustavsson <[email protected]>2013-02-14 16:04:57 +0100
commit353f78b6e1f786e3f0f4b335c79146e1cfd38210 (patch)
treea649ac0736457b74b9285543d8108dac0c3812ed /lib/asn1
parentd9b269936c18f613a95e7d28d1c3ad9729a84690 (diff)
downloadotp-353f78b6e1f786e3f0f4b335c79146e1cfd38210.tar.gz
otp-353f78b6e1f786e3f0f4b335c79146e1cfd38210.tar.bz2
otp-353f78b6e1f786e3f0f4b335c79146e1cfd38210.zip
Add NullTest
Was broken in some backends in R15. Make sure that we will notice if it breaks again.
Diffstat (limited to 'lib/asn1')
-rw-r--r--lib/asn1/test/asn1_SUITE.erl1
-rw-r--r--lib/asn1/test/asn1_SUITE_data/NullTest.asn114
2 files changed, 15 insertions, 0 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl b/lib/asn1/test/asn1_SUITE.erl
index 8479566027..4f4c972c49 100644
--- a/lib/asn1/test/asn1_SUITE.erl
+++ b/lib/asn1/test/asn1_SUITE.erl
@@ -1121,6 +1121,7 @@ test_modules() ->
"Int",
"MAP-commonDataTypes",
"Null",
+ "NullTest",
"Octetstr",
"One",
"P-Record",
diff --git a/lib/asn1/test/asn1_SUITE_data/NullTest.asn1 b/lib/asn1/test/asn1_SUITE_data/NullTest.asn1
new file mode 100644
index 0000000000..041b20a4c1
--- /dev/null
+++ b/lib/asn1/test/asn1_SUITE_data/NullTest.asn1
@@ -0,0 +1,14 @@
+NullTest DEFINITIONS ::=
+BEGIN
+
+NullTestData ::= SEQUENCE {
+ body NullBody,
+ tail INTEGER
+}
+
+NullBody ::= CHOICE {
+ null [0] NULL,
+ notNull [1] INTEGER
+}
+
+END