summary refs log tree commit diff stats
path: root/tests/sets/t20997.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/sets/t20997.nim')
-rw-r--r--tests/sets/t20997.nim18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/sets/t20997.nim b/tests/sets/t20997.nim
new file mode 100644
index 000000000..b320eee1a
--- /dev/null
+++ b/tests/sets/t20997.nim
@@ -0,0 +1,18 @@
+discard """
+  joinable: false
+"""
+
+{.passC: "-flto".}
+{.passL: "-flto".}
+
+template f(n: int) = discard card(default(set[range[0 .. (1 shl n) - 1]]))
+f( 7)
+f( 8)
+f( 9)
+f(10)
+f(11)
+f(12)
+f(13)
+f(14)
+f(15)
+f(16)
a4edf14eb85245a35f42e721658c4f8e'>^
c6ec8fa3 ^

33352536 ^
c6ec8fa3 ^

33352536 ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^


33352536 ^



c6ec8fa3 ^
33352536 ^

c6ec8fa3 ^



33352536 ^


c6ec8fa3 ^
33352536 ^

c6ec8fa3 ^

33352536 ^
c6ec8fa3 ^


33352536 ^
c6ec8fa3 ^
33352536 ^
c6ec8fa3 ^


33352536 ^
c6ec8fa3 ^


33352536 ^
c6ec8fa3 ^
33352536 ^

c6ec8fa3 ^


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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84