diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-09 11:34:21 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-09 13:44:59 -0700 |
| commit | fcf83dbf9effab3bd98bad2b83b2468b7eb05cfd (patch) | |
| tree | 41047c94883b86ec085a81597391ce3ef557cd43 /tests/rewriter/error0.hlsl | |
| parent | 52e8d4b9a27ab0060f874c3a63ab531847be35c0 (diff) | |
Initial import of code.
Diffstat (limited to 'tests/rewriter/error0.hlsl')
| -rw-r--r-- | tests/rewriter/error0.hlsl | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/rewriter/error0.hlsl b/tests/rewriter/error0.hlsl new file mode 100644 index 000000000..dc3e84fda --- /dev/null +++ b/tests/rewriter/error0.hlsl @@ -0,0 +1,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); +}
\ No newline at end of file |
