aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dialyzer/test/small_SUITE_data/src/bif1/bif1.erl
blob: bc746538d360d00500ddb004b42bd8b773403306 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-module(bif1).

%% Other set of warnings due to removed of functions from
%% erl_bif_types.

-export([ets_rename/0, string_chars/0]).

ets_rename() ->
    A = ets:new(fipp, []),
    true = not is_atom(A),
    ets:rename(A, fopp). % No warning

string_chars() ->
    L2 = bif1_adt:opaque_string(),
    S = $A,
    string:chars(S, 10, L2). % Warning