diff options
author | Friedemann Kleint <[email protected]> | 2019-11-01 15:07:54 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2022-10-21 12:11:14 +0200 |
commit | 7e28e32932b1997d52dc732d515bece324e3e1b9 (patch) | |
tree | 9b09ba0486d5041d3944ca225b093cdc2f774e87 /sources/shiboken6/tests/libsample | |
parent | b65bf9dc8f121463242eebaca19a96b6a6c3c3ef (diff) |
shiboken6: Add tests for inline namespaces
Task-number: PYSIDE-990
Change-Id: I4b8d75de9ed4cb15f4784828d64713246964ed21
Reviewed-by: Christian Tismer <[email protected]>
Reviewed-by: Qt CI Bot <[email protected]>
Diffstat (limited to 'sources/shiboken6/tests/libsample')
-rw-r--r-- | sources/shiboken6/tests/libsample/samplenamespace.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/samplenamespace.h b/sources/shiboken6/tests/libsample/samplenamespace.h index 711f98c6c..da75ead50 100644 --- a/sources/shiboken6/tests/libsample/samplenamespace.h +++ b/sources/shiboken6/tests/libsample/samplenamespace.h @@ -19,6 +19,25 @@ enum { namespace SampleNamespace { +inline namespace InlineNamespace +{ + enum EnumWithinInlineNamespace { EWIN_Value0, EWIN_Value1 }; + + class LIBSAMPLE_API ClassWithinInlineNamespace { + public: + ClassWithinInlineNamespace() = default; + ~ClassWithinInlineNamespace() = default; + ClassWithinInlineNamespace(const ClassWithinInlineNamespace &) = default; + ClassWithinInlineNamespace& operator=(const ClassWithinInlineNamespace &) = default; + + void setValue(EnumWithinInlineNamespace v) { m_value = v; } + EnumWithinInlineNamespace value() const { return m_value; } + + private: + EnumWithinInlineNamespace m_value = EWIN_Value0; + }; +} // inline ns + enum Option { None_, RandomNumber, |