diff --git a/vlib/v/slow_tests/inout/thread_uninitialized_err.out b/vlib/v/slow_tests/inout/thread_uninitialized_err.out new file mode 100644 index 00000000000000..fa8f62c5c009b4 --- /dev/null +++ b/vlib/v/slow_tests/inout/thread_uninitialized_err.out @@ -0,0 +1,2 @@ +================ V panic ================ +V panic: unable to join thread \ No newline at end of file diff --git a/vlib/v/slow_tests/inout/thread_uninitialized_err.vv b/vlib/v/slow_tests/inout/thread_uninitialized_err.vv new file mode 100644 index 00000000000000..131f2d61c1bc80 --- /dev/null +++ b/vlib/v/slow_tests/inout/thread_uninitialized_err.vv @@ -0,0 +1,10 @@ +struct Client { +mut: + network_thread thread +} + +fn main() { + mut client := &Client{} + println('================ V panic ================') + client.network_thread.wait() +}