summaryrefslogtreecommitdiff
path: root/tests/bugs/gh-75.hlsl.expected
diff options
context:
space:
mode:
authorTim Foley <tfoley@nvidia.com>2017-07-11 15:43:18 -0700
committerTim Foley <tfoley@nvidia.com>2017-07-11 15:43:18 -0700
commit24a44ffdd6e5648b3e0528ac3ccc871da853158c (patch)
tree915b5124f0da1eed6b85f1616178e80a0dfbe3af /tests/bugs/gh-75.hlsl.expected
parentd8d8fefb9693e83bea215629f3a77f8a48d2f50f (diff)
Make parser recovering more robust to avoid infinite loops
Fixes #75 In order to avoid cascaded errors, I went ahead and made the parser refuse to skip past a `}` in recovery mode. The problem with this is that we fail to make forward progress if we are stuck on a `}` (this happens if you have an extra `}` at the global scope.
Diffstat (limited to 'tests/bugs/gh-75.hlsl.expected')
-rw-r--r--tests/bugs/gh-75.hlsl.expected6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bugs/gh-75.hlsl.expected b/tests/bugs/gh-75.hlsl.expected
new file mode 100644
index 000000000..345acd804
--- /dev/null
+++ b/tests/bugs/gh-75.hlsl.expected
@@ -0,0 +1,6 @@
+result code = -1
+standard error = {
+tests/bugs/gh-75.hlsl(24): error 20001: unexpected '}', expected identifier
+}
+standard output = {
+}