summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorBung <crc32@qq.com>2023-05-23 15:39:44 +0800
committerGitHub <noreply@github.com>2023-05-23 09:39:44 +0200
commit76a98fee650228306a6b1af72e64bb83a9473ef0 (patch)
tree118426f25bd63b55078b8ba889f294069f3b35cc /tests
parentd696ef5ad7cefdde044bce0277fac172de0f56ea (diff)
downloadNim-76a98fee650228306a6b1af72e64bb83a9473ef0.tar.gz
fix #21251 Compiler SIGSEGV when using SharedTable (#21876)
fix #21251
Diffstat (limited to 'tests')
-rw-r--r--tests/stdlib/t21251.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/stdlib/t21251.nim b/tests/stdlib/t21251.nim
new file mode 100644
index 000000000..4402e9b7e
--- /dev/null
+++ b/tests/stdlib/t21251.nim
@@ -0,0 +1,6 @@
+import std / [tables, sets, sharedtables]
+
+var shared: SharedTable[int, int]
+shared.init
+
+shared[1] = 1
-0700 committer Kartik K. Agaram <vc@akkartik.com> 2015-03-17 09:06:48 -0700 945 - move 'transform' layer to before 'run'' href='/akkartik/mu/commit/cpp/relayout?h=main&id=b1bbe92da37dd44df458ffa122e052612bb9eff3'>b1bbe92d ^
b1bbe92d ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60