aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE.erl.src
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2012-02-16 15:37:26 +0100
committerBjörn Gustavsson <[email protected]>2012-02-16 15:37:26 +0100
commit5abac56e443827f755d079873623f42aa74b551e (patch)
treea69b8bebd033cd64bf63808febb1b7d147e2ab72 /lib/asn1/test/asn1_SUITE.erl.src
parent554dfc97279f027bcf061f6e303e61a7cd21ffdd (diff)
parent102c34e414f573081a93ca49162dd78cf91949b7 (diff)
downloadotp-5abac56e443827f755d079873623f42aa74b551e.tar.gz
otp-5abac56e443827f755d079873623f42aa74b551e.tar.bz2
otp-5abac56e443827f755d079873623f42aa74b551e.zip
Merge branch 'maint'
* maint: Update primary bootstrap Change test to use CT Config PrivDir Fix to integer and sequence definitions compiler: Teach the inliner to preserve on_load functions
Diffstat (limited to 'lib/asn1/test/asn1_SUITE.erl.src')
-rw-r--r--lib/asn1/test/asn1_SUITE.erl.src24
1 files changed, 22 insertions, 2 deletions
diff --git a/lib/asn1/test/asn1_SUITE.erl.src b/lib/asn1/test/asn1_SUITE.erl.src
index 124ee2d2bb..3f51b125ec 100644
--- a/lib/asn1/test/asn1_SUITE.erl.src
+++ b/lib/asn1/test/asn1_SUITE.erl.src
@@ -96,7 +96,8 @@ all() -> [{group,compile},parse,default_per,default_ber,default_per_opt,per,
testSSLspecs, testNortel,test_undecoded_rest,
test_inline, testTcapsystem, testNBAPsystem,
test_compile_options,testDoubleEllipses, test_modified_x420,
- testX420, test_x691,ticket_6143, testExtensionAdditionGroup
+ testX420, test_x691,ticket_6143, testExtensionAdditionGroup,
+ test_OTP_9688
] ++ common() ++ particular().
groups() ->
@@ -2369,4 +2370,23 @@ test_modules() ->
"LDAP"
].
-
+test_OTP_9688(Config) ->
+ Asn1Mod = "OTP-9688.asn1",
+ %%DataDir = ?config(data_dir,Config),
+ PrivDir = ?config(priv_dir,Config),
+ Data = "
+OTP-9688 DEFINITIONS ::= BEGIN
+
+ foo INTEGER ::= 1
+ bar INTEGER ::= 42
+
+ Baz ::= INTEGER {x-y-z1(foo), x-y-z2(bar)}
+ Qux ::= SEQUENCE {flerpInfo SEQUENCE {x INTEGER (-10 | -9 | (0..4))} OPTIONAL}
+
+END
+",
+ File = filename:join(PrivDir,Asn1Mod),
+ ok = file:write_file(File, Data),
+ %% Does it compile with changes to asn1ct_check and asn1ct_gen_per_rt2ct?
+ %% (see ticket)
+ ok = asn1ct:compile(File, [{outdir, PrivDir}]).