aboutsummaryrefslogtreecommitdiff
path: root/tests/actions_test.odin
blob: 935e1682fbe98322601ec23791a7e9350ca41b4a (plain)
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, {})
}