summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-07-18 23:54:05 +0800
committerGitHub <noreply@github.com>2024-07-18 23:54:05 +0800
commit3750a4dcb284d4695f5188c497c5a9dcff98388e (patch)
tree91d1127ea6170caaf5587d34ad2163752e756ab8 /tests
parent6f1371a7870a7c371a77cfdee1daa5c32f0c5377 (diff)
Add unexpected end of input error to lexer (#4673)
* Add unexpected end of input error to lexer * Add end of input test * Simplify testcase
Diffstat (limited to 'tests')
-rw-r--r--tests/diagnostics/end-of-input.slang3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/diagnostics/end-of-input.slang b/tests/diagnostics/end-of-input.slang
new file mode 100644
index 000000000..ff82a91ba
--- /dev/null
+++ b/tests/diagnostics/end-of-input.slang
@@ -0,0 +1,3 @@
+//DIAGNOSTIC_TEST:SIMPLE(filecheck=CHECK):
+// CHECK: tests/diagnostics/end-of-input.slang(3): error 10011: unexpected end of input
+\