Restore unrecognized statement defensiveness
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / bugs / yt1261.yang
1 module foo {
2   namespace "foo";
3   prefix "foo";
4
5   extension dependency {
6     argument path {
7       foo:arg-type {
8         type string;
9       }
10     }
11   }
12
13   extension arg-type {
14     foo:use-in "argument";
15     foo:substatement "type";
16   }
17
18   extension use-in {
19     argument name {
20       foo:arg-type {
21         type string;
22       }
23     }
24     foo:use-in "extension";
25   }
26
27   extension substatement {
28     argument name {
29       foo:arg-type {
30         type string;
31       }
32     }
33     foo:use-in "extension";
34   }
35
36   container root-container {
37     container container-with-must-with-prefix {
38       must "./foo/bar = 'something'" {
39         foo:dependency "foo:foo/bar";
40       }
41       leaf leaf1 {
42         type string;
43       }
44     }
45     container container-with-must-without-prefix {
46       must "./foo/bar = 'something'" {
47         foo:dependency "foo/bar";
48       }
49       leaf leaf2 {
50         type string;
51       }
52     }
53
54     container foo {
55       leaf bar {
56         type string;
57       }
58     }
59   }
60 }