1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
package tests import "core:testing" import test "src:testing" @(test) action_remove_unsed_import_when_stmt :: proc(t: ^testing.T) { source := test.Source { main = `package test import "core:fm{*}t" when true { main :: proc() { _ = fmt.printf } } `, packages = {}, } test.expect_action(t, &source, {}) }