diff options
| author | Bradley Lewis <22850972+BradLewis@users.noreply.github.com> | 2025-09-20 15:37:04 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 15:37:04 -0400 |
| commit | 789113379206b43f5e1988d807ae3a316174aa7e (patch) | |
| tree | 381c9c2668bc936b0e9d3671599b4fd91f20bf02 /tests/hover_test.odin | |
| parent | c8060630c01f8f46ae12dcc60b96b77a22f29751 (diff) | |
| parent | b0ba0838c467c43a92563baf84401e10aae23050 (diff) | |
Merge pull request #1034 from BradLewis/fix/simd-hover
Add simd tag to simd array hover information
Diffstat (limited to 'tests/hover_test.odin')
| -rw-r--r-- | tests/hover_test.odin | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index f348447..323fe81 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -4844,6 +4844,26 @@ ast_hover_proc_param_tags :: proc(t: ^testing.T) { } test.expect_hover(t, &source, "test.foo: proc(#by_ptr a: int, #any_int b: int)") } + +@(test) +ast_hover_simd_array :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + f{*}oo := #simd[2]f32{} + `, + } + test.expect_hover(t, &source, "test.foo: #simd[2]f32") +} + +@(test) +ast_hover_simd_array_pointer :: proc(t: ^testing.T) { + source := test.Source { + main = `package test + f{*}oo := &#simd[4]f32{} + `, + } + test.expect_hover(t, &source, "test.foo: ^#simd[4]f32") +} /* Waiting for odin fix |