aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/test
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2011-07-07 09:21:46 +0200
committerHans Bolinder <[email protected]>2011-07-07 09:21:46 +0200
commit65affb1b983edb336f37d931fae27aa231a7cd58 (patch)
treeae52ebd88753e861e1bd3f0144108c02b8bb30e7 /lib/stdlib/test
parent47dec87a8b9c3a29a6ae48a7712aef66275e546a (diff)
parent815e3bef189e7e2d614a014a526a638ad307ee7f (diff)
downloadotp-65affb1b983edb336f37d931fae27aa231a7cd58.tar.gz
otp-65affb1b983edb336f37d931fae27aa231a7cd58.tar.bz2
otp-65affb1b983edb336f37d931fae27aa231a7cd58.zip
Merge branch 'dev' into major
* dev: Fix a bug in erl_scan:set_attribute/3
Diffstat (limited to 'lib/stdlib/test')
-rw-r--r--lib/stdlib/test/erl_scan_SUITE.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/stdlib/test/erl_scan_SUITE.erl b/lib/stdlib/test/erl_scan_SUITE.erl
index 31a4f94294..4298b2c701 100644
--- a/lib/stdlib/test/erl_scan_SUITE.erl
+++ b/lib/stdlib/test/erl_scan_SUITE.erl
@@ -737,6 +737,10 @@ set_attribute() ->
(catch {foo, erl_scan:set_attribute(line, [], F2)}), % type error
?line {'EXIT',{badarg,_}} =
(catch {foo, erl_scan:set_attribute(column, [], F2)}), % type error
+
+ %% OTP-9412
+ ?line 8 = erl_scan:set_attribute(line, [{line,{nos,'X',8}}],
+ fun({nos,_V,VL}) -> VL end),
ok.
column_errors() ->