summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/expected-token-eof.spire
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/expected-token-eof.spire')
-rw-r--r--tests/diagnostics/expected-token-eof.spire6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/diagnostics/expected-token-eof.spire b/tests/diagnostics/expected-token-eof.spire
new file mode 100644
index 000000000..99ab161ec
--- /dev/null
+++ b/tests/diagnostics/expected-token-eof.spire
@@ -0,0 +1,6 @@
+//TEST:SIMPLE:
+// expected one token, but got EOF
+
+int foo()
+{
+ int a = 3 \ No newline at end of file