summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs/gh-463.slang11
-rw-r--r--tests/bugs/gh-463.slang.expected6
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs/gh-463.slang b/tests/bugs/gh-463.slang
new file mode 100644
index 000000000..95890eba5
--- /dev/null
+++ b/tests/bugs/gh-463.slang
@@ -0,0 +1,11 @@
+//TEST:SIMPLE:
+
+// undefined identifier used in `[instance(...)]` attribute
+
+struct V { float4 u : U; };
+
+[instance(COUNT)]
+void myGS(triangle V input[3], TriangleStream<V> output)
+{
+
+}
diff --git a/tests/bugs/gh-463.slang.expected b/tests/bugs/gh-463.slang.expected
new file mode 100644
index 000000000..d40a845a3
--- /dev/null
+++ b/tests/bugs/gh-463.slang.expected
@@ -0,0 +1,6 @@
+result code = -1
+standard error = {
+tests/bugs/gh-463.slang(7): error 30015: undefined identifier 'COUNT'.
+}
+standard output = {
+}