From 7642073333b42b160eb7da1f9c38747a8b9f0341 Mon Sep 17 00:00:00 2001 From: bramtayl Date: Thu, 13 May 2021 19:27:21 -0400 Subject: [PATCH] missing at-static test (#40818) --- test/osutils.jl | 1 + 1 file changed, 1 insertion(+) diff --git a/test/osutils.jl b/test/osutils.jl index c9e3b9d91a3774..5f597292c5cc91 100644 --- a/test/osutils.jl +++ b/test/osutils.jl @@ -44,6 +44,7 @@ end @test (@static if false 1 elseif false 2 else 3 end) === 3 @test (@static if false 1 elseif false 2 elseif true && false 3 else 4 end) === 4 @test (@static if false 1 elseif false 2 elseif true && false 3 end) === nothing + @test_throws ArgumentError("invalid @static macro") @macroexpand @static 1 end if Sys.iswindows()