diff options
Diffstat (limited to 'sources/shiboken6/tests/libsample/cvlist.h')
-rw-r--r-- | sources/shiboken6/tests/libsample/cvlist.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sources/shiboken6/tests/libsample/cvlist.h b/sources/shiboken6/tests/libsample/cvlist.h new file mode 100644 index 000000000..e09c7d943 --- /dev/null +++ b/sources/shiboken6/tests/libsample/cvlist.h @@ -0,0 +1,28 @@ +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0 + +#ifndef CONSTVALUELIST_H +#define CONSTVALUELIST_H + +#include <list> +#include "libsamplemacros.h" + +class CVValueType +{ + CVValueType(); +}; + +using const_ptr_value_list = std::list<const CVValueType*>; + +// This tests binding generation for a container of a const value type. The +// class doesn't need to do anything; this is just to verify that the generated +// binding code (the container conversion in particular) is const-valid. + +class CVListUser +{ +public: + static const_ptr_value_list produce() { return {}; } + static void consume(const const_ptr_value_list &l) { (void)l; } +}; + +#endif // LIST_H |