summaryrefslogtreecommitdiff
path: root/tests/semantic/with-enum.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/semantic/with-enum.test')
-rw-r--r--tests/semantic/with-enum.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/semantic/with-enum.test b/tests/semantic/with-enum.test
new file mode 100644
index 000000000..3a473a2f1
--- /dev/null
+++ b/tests/semantic/with-enum.test
@@ -0,0 +1,10 @@
+Invalid Code
+
+enum FooEnum {
+ FIRST
+}
+
+void main () {
+ with (FooEnum) {
+ }
+}