Commit 10b3bbe1 authored by Kevin Puetz's avatar Kevin Puetz Committed by Alexandre Julliard

oleaut32/tests: Add tests for rewriting FUNCDESC to FUNC_DISPATCH.

Add examples in test_tlb which exercise FUNCDESC rewriting in: 1. dispinterface FUNC_DISPATCH declarations 2. dual interface 3. dispinterface which implements another interface Signed-off-by: 's avatarKevin Puetz <PuetzKevinA@JohnDeere.com> Signed-off-by: 's avatarHuw Davies <huw@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 477fc581
......@@ -134,4 +134,40 @@ library Test
HRESULT test5(e value);
HRESULT test6(f value);
}
[uuid(2d4430d5-99ea-4645-85f0-c5814b72804b)]
dispinterface ITestDispatch
{
properties:
[id(10)] int property_int;
[id(11)] HRESULT property_HRESULT;
methods:
[id(1)] void test_void();
[id(2)] void test_void_retval([out,retval] double* ret);
[id(3)] HRESULT test_HRESULT();
[id(4)] HRESULT test_HRESULT_retval([out,retval] double* ret);
[id(5)] int test_int();
[id(6)] int test_int_retval([out,retval] double* ret);
[id(7)] double parse_lcid([in] BSTR x, [lcid] long lcid);
}
[uuid(79ca07f9-ac22-44ac-9aaf-811f45412293), dual]
interface ITestDispDual : IDispatch
{
[id(1)] void test_void();
[id(2)] void test_void_retval([out,retval] double* ret);
[id(3)] HRESULT test_HRESULT();
[id(4)] HRESULT test_HRESULT_retval([out,retval] double* ret);
[id(5)] int test_int();
[id(6)] int test_int_retval([out,retval] double* ret);
[id(7)] HRESULT parse_lcid([in] BSTR x, [lcid] long lcid, [out,retval] double *ret);
}
[uuid(cdb105e3-24fb-4ae6-b826-801b7b2a0a07)]
dispinterface ITestDispInherit
{
interface ITestDispDual;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment