From 8aba274de204e1d401a20b95d78555f045ae49f0 Mon Sep 17 00:00:00 2001 From: Jerome Lambourg Date: Fri, 1 Jan 2021 01:55:01 -0300 Subject: [PATCH] Undefine ERROR in g++.dg/tree-ssa/copyprop.C VxWorks headers define ERROR as a macro, which conflicts with the use in the test. for gcc/testsuite/ChangeLog * g++.dg/tree-ssa/copyprop.C: Undefine ERROR if defined. --- gcc/testsuite/g++.dg/tree-ssa/copyprop.C | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/testsuite/g++.dg/tree-ssa/copyprop.C b/gcc/testsuite/g++.dg/tree-ssa/copyprop.C index 8c05895e45e..bc9167ad120 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/copyprop.C +++ b/gcc/testsuite/g++.dg/tree-ssa/copyprop.C @@ -8,6 +8,11 @@ #include #include #include + +#ifdef ERROR +#undef ERROR +#endif + using namespace std; template _FIter lower_bound(_FIter, _FIter, _Tp&); template struct hash { }; -- 2.30.2