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
da071d93
Commit
da071d93
authored
Dec 22, 2016
by
Piotr Caban
Committed by
Alexandre Julliard
Dec 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Correctly declare base class to avoid a compiler warning.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
29533e48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
cpp.c
dlls/msvcrt/tests/cpp.c
+6
-2
No files found.
dlls/msvcrt/tests/cpp.c
View file @
da071d93
...
...
@@ -969,7 +969,11 @@ static void test_rtti(void)
void
*
child_class_sig0
=
&
child_class_sig0_vtbl
[
1
];
void
*
virtual_base_class_vtbl
[
2
]
=
{
&
virtual_base_class_rtti
.
object_locator
};
int
virtual_base_class_vbtbl
[
2
]
=
{
0
,
0x100
};
void
*
virtual_base_class
[
2
]
=
{
&
virtual_base_class_vtbl
[
1
],
virtual_base_class_vbtbl
};
struct
{
void
*
virtual_base
[
2
];
char
data
[
0x110
-
sizeof
(
void
*
)];
void
*
vbthis
;
}
virtual_base_class
=
{
{
&
virtual_base_class_vtbl
[
1
],
virtual_base_class_vbtbl
}
};
static
const
char
*
e_name
=
"name"
;
type_info
*
ti
,
*
bti
;
...
...
@@ -1082,7 +1086,7 @@ static void test_rtti(void)
ok
(
casted
==
(
char
*
)
&
child_class
+
4
,
"failed cast to child class (%p %p)
\n
"
,
casted
,
&
child_class
);
casted
=
p__RTDynamicCast
(
&
virtual_base_class
,
0
,
&
virtual_base_class_rtti
.
type_info
[
0
],
&
virtual_base_class_rtti
.
type_info
[
1
],
0
);
ok
(
casted
==
(
char
*
)
&
virtual_base_class
+
0x110
+
sizeof
(
void
*
)
,
"failed cast to child class (%p %p)
\n
"
,
casted
,
&
virtual_base_class
);
ok
(
casted
==
&
virtual_base_class
.
vbthis
,
"failed cast to child class (%p %p)
\n
"
,
casted
,
&
virtual_base_class
);
}
struct
_demangle
{
...
...
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