blob: 9a5acaf352d2a147c4a4b168088af784905bfc49 [file] [log] [blame]
Dim te, foo
Set te = CreateObject("throw_exception.throw_exception")
Set foo = te.Foo.new_Foo()
On Error Resume Next
foo.test_int()
If Err.Number = 0 Then
WScript.Echo "Exception should have been thrown"
WScript.Quit 1
End If
If Err.Description <> "C++ int exception thrown" Then
WScript.Echo "Incorrect exception message"
WScript.Quit 1
End If