diff options
| author | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-12 11:00:09 +0100 |
|---|---|---|
| committer | Daniel Gavin <danielgavin5@hotmail.com> | 2022-01-12 11:00:09 +0100 |
| commit | e8d2c76db829c59e88d5342f1c4385354cc9546f (patch) | |
| tree | e37bd91b3fba2d51b36cb1e3b8fd3df8193074e1 /tests | |
| parent | cfc631db5eae7b61f85084310b26b76b2285ce1a (diff) | |
more tests
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/signatures_test.odin | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/signatures_test.odin b/tests/signatures_test.odin index 6e29db6..843a624 100644 --- a/tests/signatures_test.odin +++ b/tests/signatures_test.odin @@ -486,6 +486,25 @@ proc_with_struct_poly :: proc(t: ^testing.T) { test.expect_signature_labels(t, &source, {"test.uf: proc(u: U($T, $E))"}); } +@(test) +proc_signature_move_outside :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + my_cool_function :: proc(aa: int, ba: int, c: int) { + + } + main :: proc() { + my_cool_function() * + } + `, + packages = {}, + }; + + test.expect_signature_labels(t, &source, {"test.uf: proc(u: U($T, $E))"}); +} + + + /* @(test) |