summary refs log tree commit diff stats
path: root/tests/system
diff options
context:
space:
mode:
authorEXetoC <exetoc@gmail.com>2014-04-20 23:09:29 +0200
committerEXetoC <exetoc@gmail.com>2014-04-20 23:09:29 +0200
commitd29cf2d0e2390e1642b0bd755e506826c1578252 (patch)
tree44f78e7c21900c0f93dc1d6da9ff489db50d471a /tests/system
parent171f4a21e8b2180cfeb4dcdb0ebde95f73b3dec3 (diff)
downloadNim-d29cf2d0e2390e1642b0bd755e506826c1578252.tar.gz
Add test for bad spawn argument.
Diffstat (limited to 'tests/system')
-rw-r--r--tests/system/tsysspawnbadarg.nim7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/system/tsysspawnbadarg.nim b/tests/system/tsysspawnbadarg.nim
new file mode 100644
index 000000000..ace074602
--- /dev/null
+++ b/tests/system/tsysspawnbadarg.nim
@@ -0,0 +1,7 @@
+discard """
+  line: 7
+  errormsg: "'spawn' takes a call expression of type void"
+  cmd: "nimrod $target --threads:on $options $file"
+"""
+
+spawn(1)
n136'>136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253