HLSL: Fix #758: Support character literals (except for numeric escape sequences).
This commit is contained in:
parent
2051815bcc
commit
a0c578a6df
6 changed files with 331 additions and 1 deletions
17
Test/hlsl.charLit.vert
Executable file
17
Test/hlsl.charLit.vert
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
float4 main() : SV_Position
|
||||
{
|
||||
uint a1 = 'A';
|
||||
int a2 = '0';
|
||||
|
||||
int a3 = '\a';
|
||||
a3 += '\b';
|
||||
a3 += '\t';
|
||||
a3 += '\n';
|
||||
a3 += '\v';
|
||||
a3 += '\f';
|
||||
a3 += '\r';
|
||||
|
||||
int a10 = '\c';
|
||||
|
||||
return a1 + a2 + a3 + a10;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue