YANGTOOLS-706: Split out yang-parser-rfc7950
[yangtools.git] / yang / yang-parser-rfc7950 / src / test / resources / bugs / bug6316 / foo.yang
1 module foo {
2     namespace "foo";
3     prefix foo;
4
5     typedef my-enumeration {
6         type enumeration {
7             enum zero;
8             enum twenty {
9                 value 20;
10             }
11             enum twenty-one;
12             enum two {
13                 value 2;
14             }
15             enum twenty-two;
16         }
17     }
18
19     typedef my-bits {
20         type bits {
21             bit zero;
22             bit twenty {
23                 position 20;
24             }
25             bit twenty-one;
26             bit two {
27                 position 2;
28             }
29             bit twenty-two;
30         }
31     }
32
33     leaf enum-leaf {
34         type my-enumeration;
35     }
36
37     leaf bits-leaf {
38         type my-bits;
39     }
40 }