Do not create effective copy for unsupported statements
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / resources / bugs / YT1532 / augment-with-no-description-all-leafs-with-if-feature / foo.yang
diff --git a/parser/yang-parser-rfc7950/src/test/resources/bugs/YT1532/augment-with-no-description-all-leafs-with-if-feature/foo.yang b/parser/yang-parser-rfc7950/src/test/resources/bugs/YT1532/augment-with-no-description-all-leafs-with-if-feature/foo.yang
new file mode 100644 (file)
index 0000000..07ae048
--- /dev/null
@@ -0,0 +1,33 @@
+module foo {
+  namespace "urn:foo";
+  prefix "foo";
+
+  feature alpha;
+
+  grouping foo-group {
+    container foo;
+  }
+
+  grouping bar-group {
+    uses foo-group {
+      augment foo {
+        leaf bar1 {
+          if-feature alpha;
+          type string;
+        }
+        leaf bar2 {
+          if-feature alpha;
+          type string;
+        }
+      }
+    }
+  }
+
+  uses bar-group {
+    augment foo {
+      leaf baz {
+        type string;
+      }
+    }
+  }
+}