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
8e3b050f
Commit
8e3b050f
authored
Mar 10, 2012
by
Józef Kucia
Committed by
Alexandre Julliard
Mar 12, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3dcompiler/tests: Add test for comments containing quotation marks.
parent
1d9bb502
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
asm.c
dlls/d3dcompiler_43/tests/asm.c
+20
-0
No files found.
dlls/d3dcompiler_43/tests/asm.c
View file @
8e3b050f
...
@@ -1574,6 +1574,13 @@ static void d3dpreprocess_test(void)
...
@@ -1574,6 +1574,13 @@ static void d3dpreprocess_test(void)
"vs.1.1
\n
"
"vs.1.1
\n
"
"mov DEF2, v0
\n
"
"mov DEF2, v0
\n
"
};
};
const
char
quotation_marks_test
[]
=
{
"vs.1.1
\n
"
"; ' comment
\n
"
";
\"
comment
\n
"
"mov 0, v0
\n
"
};
const
char
testshader
[]
=
const
char
testshader
[]
=
{
{
"#include
\"
incl.vsh
\"\n
"
"#include
\"
incl.vsh
\"\n
"
...
@@ -1631,6 +1638,19 @@ static void d3dpreprocess_test(void)
...
@@ -1631,6 +1638,19 @@ static void d3dpreprocess_test(void)
ID3D10Blob_Release
(
messages
);
ID3D10Blob_Release
(
messages
);
}
}
/* quotation marks test */
shader
=
NULL
;
messages
=
NULL
;
hr
=
D3DPreprocess
(
quotation_marks_test
,
strlen
(
quotation_marks_test
),
NULL
,
NULL
,
NULL
,
&
shader
,
&
messages
);
todo_wine
ok
(
hr
==
S_OK
,
"quotation marks test failed with error 0x%x - %d
\n
"
,
hr
,
hr
&
0x0000FFFF
);
if
(
messages
)
{
trace
(
"D3DPreprocess messages:
\n
%s"
,
(
char
*
)
ID3D10Blob_GetBufferPointer
(
messages
));
ID3D10Blob_Release
(
messages
);
}
if
(
shader
)
ID3D10Blob_Release
(
shader
);
/* pInclude test */
/* pInclude test */
shader
=
NULL
;
shader
=
NULL
;
messages
=
NULL
;
messages
=
NULL
;
...
...
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