summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2022-12-27 12:38:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2022-12-27 12:55:38 +0100
commit52775a29b431b346bf201877159b6abcfb982990 (patch)
tree1a610f0f013ed1d5598e481be1f6eaeeb0ebf5fe
parente1030dc6e69863438fe35a628bd6af9abc814b4a (diff)
Fix unit-test with gcc-12
-rw-r--r--test/tools_test.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/tools_test.cc b/test/tools_test.cc
index 3e9de1b..743edb6 100644
--- a/test/tools_test.cc
+++ b/test/tools_test.cc
@@ -1,3 +1,9 @@
+#include <vector>
+#include <string>
+#include <ostream>
+
+std::ostream& operator<<(std::ostream& stream, const std::vector<std::string>& vs);
+
#include <uunit.h>
#include <initializer_list>
@@ -7,8 +13,6 @@
using namespace std::string_literals;
-namespace
-{
std::ostream& operator<<(std::ostream& stream, const ToolChain& tool_chain)
{
switch(tool_chain)
@@ -74,7 +78,6 @@ std::ostream& operator<<(std::ostream& stream, const std::pair<opt, std::string>
return stream;
}
-}
// Controllable getConfiguration stub:
namespace