From 4c408a85759eb42b6b84b8cdab81453df31cd289 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 15 Dec 2011 13:09:25 +0200 Subject: Register substituting anonymous types with polymorphic maps --- tests/cxx/tree/polymorphism/ostream/makefile | 2 +- tests/cxx/tree/polymorphism/ostream/output | 5 +++++ tests/cxx/tree/polymorphism/ostream/test.xml | 13 +++++++------ tests/cxx/tree/polymorphism/ostream/test.xsd | 18 ++++++++++++++++-- 4 files changed, 29 insertions(+), 9 deletions(-) (limited to 'tests/cxx') diff --git a/tests/cxx/tree/polymorphism/ostream/makefile b/tests/cxx/tree/polymorphism/ostream/makefile index c6dd0b0..777d716 100644 --- a/tests/cxx/tree/polymorphism/ostream/makefile +++ b/tests/cxx/tree/polymorphism/ostream/makefile @@ -35,7 +35,7 @@ gen := $(addprefix $(out_base)/,$(genf)) $(gen): xsd := $(out_root)/xsd/xsd $(gen): xsd_options := --generate-polymorphic --polymorphic-type-all \ ---generate-ostream +--root-element root --generate-ostream $(gen): $(out_root)/xsd/xsd $(call include-dep,$(dep)) diff --git a/tests/cxx/tree/polymorphism/ostream/output b/tests/cxx/tree/polymorphism/ostream/output index bf0e814..e7fbd68 100644 --- a/tests/cxx/tree/polymorphism/ostream/output +++ b/tests/cxx/tree/polymorphism/ostream/output @@ -11,3 +11,8 @@ a: a fund: 1 c: c1 c: c2 +base: +a: a +fund: 1 +d: d1 +d: d2 diff --git a/tests/cxx/tree/polymorphism/ostream/test.xml b/tests/cxx/tree/polymorphism/ostream/test.xml index 157e15c..5409d2a 100644 --- a/tests/cxx/tree/polymorphism/ostream/test.xml +++ b/tests/cxx/tree/polymorphism/ostream/test.xml @@ -1,9 +1,10 @@ - + a1 - a1b - a1c1c2 + a1b + a1c1c2 + a1d1d2 - + diff --git a/tests/cxx/tree/polymorphism/ostream/test.xsd b/tests/cxx/tree/polymorphism/ostream/test.xsd index cc1f7a8..ddeaeae 100644 --- a/tests/cxx/tree/polymorphism/ostream/test.xsd +++ b/tests/cxx/tree/polymorphism/ostream/test.xsd @@ -1,5 +1,6 @@ - + @@ -7,6 +8,7 @@ + @@ -28,9 +30,21 @@ + + + + + + + + + + + + - + -- cgit v1.1