git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305403
91177308-0d34-0410-b5e6-
96231b3b80d8
#include "llvm/IR/Module.h"
#include "llvm/IR/PassManager.h"
#include "llvm/Support/SourceMgr.h"
+
+// Workaround for the gcc 7.1 bug PR80916.
+#if defined(__GNUC__) && __GNUC__ > 6
+# pragma GCC diagnostic push
+# pragma GCC diagnostic ignored "-Wunused-function"
+#endif
+
#include "gmock/gmock.h"
#include "gtest/gtest.h"
+#if defined(__GNUC__) && __GNUC__ > 6
+# pragma GCC diagnostic pop
+#endif
+
using namespace llvm;
namespace {