From fcf83dbf9effab3bd98bad2b83b2468b7eb05cfd Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Fri, 9 Jun 2017 11:34:21 -0700 Subject: Initial import of code. --- tests/rewriter/error0.hlsl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/rewriter/error0.hlsl (limited to 'tests/rewriter/error0.hlsl') 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 -- cgit v1.2.3