blob: dc3e84fdab75f3b94e563ba6094d74e7ad904e05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
//TEST:COMPARE_HLSL: -no-checking -target dxbc-assembly -profile ps_4_0 -entry main
// We need to confirm that when there is an error in
// the input code, we allow the downstream compiler
// to detect and report the error, not us...
// This file presents a simple case, where we forgot a semicolon.
float4 main() : SV_Target
{
float a = 1.0;
// no semicolon at the end of this line!
float b = 2.0
float c = a + b;
return float4(c);
}
|