aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/tests/libsample
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-18 11:08:20 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-06-18 15:28:28 +0200
commitd84e3bbef876884de64b8ecf7b6887a248379600 (patch)
tree097e919c3341c8a9e0f8050f6040ed5677a9a09f /sources/shiboken6/tests/libsample
parent6938ca19e7a2b200ee83fdddce3c5908199c1f75 (diff)
shiboken6: Add test for constants
Task-number: PYSIDE-186 Change-Id: Ic4ba7f22bead8418a18dec100a77e3befe038a76 Reviewed-by: Christian Tismer <tismer@stackless.com> Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken6/tests/libsample')
-rw-r--r--sources/shiboken6/tests/libsample/sample.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/sample.h b/sources/shiboken6/tests/libsample/sample.h
index fe76a53b2..a6a0ff154 100644
--- a/sources/shiboken6/tests/libsample/sample.h
+++ b/sources/shiboken6/tests/libsample/sample.h
@@ -46,6 +46,8 @@ namespace sample
// shiboken must not generate richcompare for namespace sample
LIBSAMPLE_API bool operator==(const sample&s1, const sample&s2);
+
+ const int INT_CONSTANT = 42;
}
#endif