diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-14 10:19:53 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-10-15 16:23:25 +0200 |
commit | 407df30afa155c9e0195a25ba16827385e507314 (patch) | |
tree | e86dffda7b5018b1b679889d7a5959c5d77f0803 /sources/shiboken2/tests/samplebinding/typesystem_sample.xml | |
parent | b0da5a06e147b02af0bf2d69364e3bfcc04327d5 (diff) |
Add a test for typesystem typedefs
Mimicks some template which might be used trying to enforce
correctness of units by type checking.
Task-number: PYSIDE-725
Change-Id: Ia7008d7db5638920eee3d0ef36cc32a63796b98e
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/tests/samplebinding/typesystem_sample.xml')
-rw-r--r-- | sources/shiboken2/tests/samplebinding/typesystem_sample.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sources/shiboken2/tests/samplebinding/typesystem_sample.xml b/sources/shiboken2/tests/samplebinding/typesystem_sample.xml index 7931c5a8d..595afb9ae 100644 --- a/sources/shiboken2/tests/samplebinding/typesystem_sample.xml +++ b/sources/shiboken2/tests/samplebinding/typesystem_sample.xml @@ -2465,6 +2465,12 @@ <value-type name="ToBeRenamedValue" target-lang-name="RenamedValue"/> <value-type name="RenamedUser"/> + <enum-type name="LengthUnit"/> + <value-type name="ValueWithUnit" generate="no"/> + <typedef-type name="ValueWithUnitDoubleInch" source="ValueWithUnit<double,LengthUnit::Inch>"/> + <typedef-type name="ValueWithUnitDoubleMillimeter" source="ValueWithUnit<double,LengthUnit::Millimeter>"/> + <value-type name="ValueWithUnitUser"/> + <suppress-warning text="horribly broken type '__off64_t'" /> <suppress-warning text="enum '__codecvt_result' does not have a type entry or is not an enum" /> <suppress-warning text="Pure virtual method "Abstract::hideFunction(HideType*)" must be implement but was completely removed on typesystem." /> |