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 09d21f5 commit c5cb844Copy full SHA for c5cb844
test/issue980.jl
@@ -0,0 +1,17 @@
1
+module Issue980
2
+
3
+import MathOptInterface
4
+const MOI = MathOptInterface
5
6
+abstract type StaticArray end
7
+(::Type{SA})(x...) where {SA <: StaticArray} = SA(x)
8
9
+function crash()
10
+ model = MOI.Utilities.Model{Float64}()
11
+ bridged = MOI.Bridges.LazyBridgeOptimizer(MOI.Utilities.Model{Float64}())
12
+ MOI.copy_to(bridged, model)
13
+end
14
15
+crash()
16
17
test/runtests.jl
@@ -6,6 +6,9 @@ const MOIB = MathOptInterface.Bridges
using Test
+# It needs to be called first to trigger the crash.
+include("issue980.jl")
# Tests for solvers are located in MOI.Test.
include("dummy.jl")
0 commit comments