diff --git a/cfg/wxwidgets.cfg b/cfg/wxwidgets.cfg
index ef84dae1b5c..fb89fc6a7dd 100644
--- a/cfg/wxwidgets.cfg
+++ b/cfg/wxwidgets.cfg
@@ -10,6 +10,7 @@
wxArrayShort
wxArrayString
wxBitmap
+ wxBitmapBundle
wxBrush
wxChar
wxUniChar
diff --git a/test/cfg/wxwidgets.cpp b/test/cfg/wxwidgets.cpp
index 5e0cb1b8fe3..1c7c497c2ee 100644
--- a/test/cfg/wxwidgets.cpp
+++ b/test/cfg/wxwidgets.cpp
@@ -16,6 +16,7 @@
#include
#include
#include
+#include
#include
#include
#include
@@ -58,7 +59,23 @@
#include
#include
-void unusedVariable_wxIconLocation(const wxIcon &icon)
+void unreadVariable_wxBitmapBundle(const wxBitmap &bmp, const wxIcon &icon, const wxImage &image, const char *const * xpm, const wxBitmapBundle &bundle)
+{
+ // cppcheck-suppress unusedVariable
+ wxBitmapBundle a;
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle b(bmp);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle c(icon);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle d(image);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle e(xpm);
+ // cppcheck-suppress unreadVariable
+ wxBitmapBundle f(bundle);
+}
+
+void unusedVariable_wxIconLocation()
{
// cppcheck-suppress unusedVariable
wxIconLocation a;