--- /dev/null
+module foo {
+ namespace "foo-namespace";
+ prefix "f";
+
+ identity ident-base;
+ identity ident-one {
+ base ident-base;
+ }
+
+ typedef union-type {
+ type union {
+ type uint8;
+ type identityref {
+ base ident-base;
+ }
+ }
+ }
+
+ container leaf-container {
+ leaf union-identityref-leaf {
+ type union-type;
+ }
+
+ leaf identityref-leaf {
+ type identityref {
+ base ident-base;
+ }
+ }
+ }
+}
\ No newline at end of file