HLSL: Fix #758: Support character literals (except for numeric escape sequences).

This commit is contained in:
John Kessenich 2017-04-12 16:31:15 -06:00
parent 2051815bcc
commit a0c578a6df
6 changed files with 331 additions and 1 deletions

17
Test/hlsl.charLit.vert Executable file
View 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;
}