summaryrefslogtreecommitdiffstats
path: root/tests/diagnostics/variable-void-type.spire
diff options
context:
space:
mode:
Diffstat (limited to 'tests/diagnostics/variable-void-type.spire')
-rw-r--r--tests/diagnostics/variable-void-type.spire7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/diagnostics/variable-void-type.spire b/tests/diagnostics/variable-void-type.spire
new file mode 100644
index 000000000..926e6401d
--- /dev/null
+++ b/tests/diagnostics/variable-void-type.spire
@@ -0,0 +1,7 @@
+//TEST:SIMPLE:
+// variable with `void` type
+
+void foo()
+{
+ void a;
+}