diff --git a/tests/manual/debugger/simple/simple_test_app.cpp b/tests/manual/debugger/simple/simple_test_app.cpp
index d61c6a755485220df160525f21a994c72d2bf088..8bb22d6f972a9a70bbe8cf697c07dc5898b60745 100644
--- a/tests/manual/debugger/simple/simple_test_app.cpp
+++ b/tests/manual/debugger/simple/simple_test_app.cpp
@@ -113,6 +113,10 @@
 
 void dummyStatement(...) {}
 
+#if USE_CXX11 && defined(__GNUC__) && defined(__STRICT_ANSI__)
+#undef __STRICT_ANSI__ // working around compile error with MinGW
+#endif
+
 #include <QtCore/QDebug>
 #include <QtCore/QDateTime>
 #include <QtCore/QDir>