Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
ca862a38
Commit
ca862a38
authored
Oct 04, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp140/tests: Test virtual base table size exports.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
3ba26d38
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
msvcp140.c
dlls/msvcp140/tests/msvcp140.c
+36
-0
No files found.
dlls/msvcp140/tests/msvcp140.c
View file @
ca862a38
...
...
@@ -47,9 +47,45 @@ static void test_thrd(void)
p__Thrd_id
(),
GetCurrentThreadId
());
}
static
struct
{
int
value
[
2
];
const
char
*
export_name
;
}
vbtable_size_exports_list
[]
=
{
{{
0x20
,
0x20
},
"??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_istream@DU?$char_traits@D@std@@@1@@"
},
{{
0x10
,
0x10
},
"??_8?$basic_iostream@DU?$char_traits@D@std@@@std@@7B?$basic_ostream@DU?$char_traits@D@std@@@1@@"
},
{{
0x20
,
0x20
},
"??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_istream@GU?$char_traits@G@std@@@1@@"
},
{{
0x10
,
0x10
},
"??_8?$basic_iostream@GU?$char_traits@G@std@@@std@@7B?$basic_ostream@GU?$char_traits@G@std@@@1@@"
},
{{
0x20
,
0x20
},
"??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_istream@_WU?$char_traits@_W@std@@@1@@"
},
{{
0x10
,
0x10
},
"??_8?$basic_iostream@_WU?$char_traits@_W@std@@@std@@7B?$basic_ostream@_WU?$char_traits@_W@std@@@1@@"
},
{{
0x18
,
0x18
},
"??_8?$basic_istream@DU?$char_traits@D@std@@@std@@7B@"
},
{{
0x18
,
0x18
},
"??_8?$basic_istream@GU?$char_traits@G@std@@@std@@7B@"
},
{{
0x18
,
0x18
},
"??_8?$basic_istream@_WU?$char_traits@_W@std@@@std@@7B@"
},
{{
0x8
,
0x10
},
"??_8?$basic_ostream@DU?$char_traits@D@std@@@std@@7B@"
},
{{
0x8
,
0x10
},
"??_8?$basic_ostream@GU?$char_traits@G@std@@@std@@7B@"
},
{{
0x8
,
0x10
},
"??_8?$basic_ostream@_WU?$char_traits@_W@std@@@std@@7B@"
},
{{
0x0
,
0x0
},
0
}
};
static
void
test_vbtable_size_exports
(
void
)
{
int
i
;
const
int
*
p_vbtable
;
int
arch_idx
=
(
sizeof
(
void
*
)
==
8
);
for
(
i
=
0
;
vbtable_size_exports_list
[
i
].
export_name
;
i
++
)
{
SET
(
p_vbtable
,
vbtable_size_exports_list
[
i
].
export_name
);
ok
(
p_vbtable
[
0
]
==
0
,
"vbtable[0] wrong, got 0x%x
\n
"
,
p_vbtable
[
0
]);
ok
(
p_vbtable
[
1
]
==
vbtable_size_exports_list
[
i
].
value
[
arch_idx
],
"%d: %s[1] wrong, got 0x%x
\n
"
,
i
,
vbtable_size_exports_list
[
i
].
export_name
,
p_vbtable
[
1
]);
}
}
START_TEST
(
msvcp140
)
{
if
(
!
init
())
return
;
test_thrd
();
test_vbtable_size_exports
();
FreeLibrary
(
msvcp
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment