aboutsummaryrefslogtreecommitdiffstats
path: root/lib/compiler/test/compile_SUITE.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-10-28 15:25:24 +0100
committerBjörn Gustavsson <[email protected]>2015-04-30 12:14:29 +0200
commitd20cf6b7d18fd45d6c1beaa39aa87be90080f30b (patch)
tree043ef60b97f7cb426dd8a581ea4a3430e3982147 /lib/compiler/test/compile_SUITE.erl
parentfe070a32f9f685ef4df1a5123e9328bb82e3947a (diff)
downloadotp-d20cf6b7d18fd45d6c1beaa39aa87be90080f30b.tar.gz
otp-d20cf6b7d18fd45d6c1beaa39aa87be90080f30b.tar.bz2
otp-d20cf6b7d18fd45d6c1beaa39aa87be90080f30b.zip
compiler: Use module erl_anno
Diffstat (limited to 'lib/compiler/test/compile_SUITE.erl')
-rw-r--r--lib/compiler/test/compile_SUITE.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/compiler/test/compile_SUITE.erl b/lib/compiler/test/compile_SUITE.erl
index 6d4fde662b..6b0369bf98 100644
--- a/lib/compiler/test/compile_SUITE.erl
+++ b/lib/compiler/test/compile_SUITE.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 1997-2013. All Rights Reserved.
+%% Copyright Ericsson AB 1997-2014. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -126,7 +126,8 @@ file_1(Config) when is_list(Config) ->
forms_2(Config) when is_list(Config) ->
Src = "/foo/bar",
AbsSrc = filename:absname(Src),
- {ok,simple,Binary} = compile:forms([{attribute,1,module,simple}],
+ Anno = erl_anno:new(1),
+ {ok,simple,Binary} = compile:forms([{attribute,Anno,module,simple}],
[binary,{source,Src}]),
code:load_binary(simple, Src, Binary),
Info = simple:module_info(compile),