Mark only included files as potentially unused #933

Merged
ghallak merged 3 commits from ghallak/441 into master 2023-03-21 19:55:19 +09:00
2 changed files with 6 additions and 0 deletions
Showing only changes of commit b69e19be1d - Show all commits

View File

@ -69,6 +69,7 @@ simple_compile_test_() ->
[ {"Testing warning messages",
fun() ->
#{ warnings := Warnings } = compile("warnings", [warn_all]),
#{ warnings := [] } = compile("warning_unused_include_no_include", [warn_all]),
check_warnings(warnings(), Warnings)
end} ] ++
[].

View File

@ -0,0 +1,5 @@
namespace N =
function nconst() = 1
main contract C =
entrypoint f() = N.nconst()