YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / rfc7950 / bug6887 / foo10-invalid-2.yang
diff --git a/yang/yang-parser-rfc7950/src/test/resources/rfc7950/bug6887/foo10-invalid-2.yang b/yang/yang-parser-rfc7950/src/test/resources/rfc7950/bug6887/foo10-invalid-2.yang
new file mode 100644 (file)
index 0000000..cfa900e
--- /dev/null
@@ -0,0 +1,30 @@
+module foo {
+    namespace foo;
+    prefix foo;
+
+    revision 2017-02-02;
+
+    typedef my-base-enumeration-type {
+        type enumeration {
+            enum white {
+                value 1;
+            }
+            enum yellow;
+            enum red {
+                value 3;
+            }
+            enum black {
+                value 4;
+            }
+        }
+    }
+
+    leaf my-enumeration-leaf {
+        type my-base-enumeration-type {
+            enum yellow;
+            enum red {
+                value 3;
+            }
+        }
+    }
+}
\ No newline at end of file