We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28b4286 commit a117008Copy full SHA for a117008
test/threads.jl
@@ -304,3 +304,9 @@ close(proc.in)
304
end
305
306
307
+
308
+@testset "bad arguments to @threads" begin
309
+ @test_throws ArgumentError @macroexpand(@threads 1 2) # wrong number of args
310
+ @test_throws ArgumentError @macroexpand(@threads 1) # arg isn't an Expr
311
+ @test_throws ArgumentError @macroexpand(@threads if true 1 end) # arg doesn't start with for
312
+end
0 commit comments