This commit is contained in:
Gaith Hallak 2023-03-20 08:00:14 +03:00
parent 9c7f942bca
commit b69e19be1d
2 changed files with 6 additions and 0 deletions

View File

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

View File

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