aboutsummaryrefslogblamecommitdiffstats
path: root/lib/stdlib/test/escript_SUITE_data/filesize
blob: fd211c55cdd4b45973773faa7a75c65e7fd0688e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                    
#!/usr/bin/env escript
%% -*- erlang -*-
-include_lib("kernel/include/file.hrl").

main([Filename]) ->
    {ok,#file_info{size=Size}} = file:read_file_info(Filename),
    io:format("~p\n", [Size]).

%% Deliberate warning follows so that we can check that line numbers
%% correct after an -include_lib directive.
id(I) -> I.