summaryrefslogtreecommitdiffstats
path: root/tests/parser
diff options
context:
space:
mode:
Diffstat (limited to 'tests/parser')
-rw-r--r--tests/parser/cast-precedence.hlsl15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/parser/cast-precedence.hlsl b/tests/parser/cast-precedence.hlsl
new file mode 100644
index 000000000..d5d0b0322
--- /dev/null
+++ b/tests/parser/cast-precedence.hlsl
@@ -0,0 +1,15 @@
+//TEST:COMPARE_HLSL: -profile vs_5_0
+
+// Confirm that type-cast expressions parse with
+// the appropriate precedence.
+
+cbuffer C : register(b0)
+{
+ float a;
+ float b;
+};
+
+float4 main() : SV_Position
+{
+ return (uint) a / b;
+}