projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af655de
)
Undefine ERROR in g++.dg/tree-ssa/copyprop.C
author
Jerome Lambourg
<lambourg@adacore.com>
Fri, 1 Jan 2021 04:55:01 +0000
(
01:55
-0300)
committer
Alexandre Oliva
<oliva@gnu.org>
Fri, 1 Jan 2021 04:56:25 +0000
(
01:56
-0300)
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
patch
|
blob
|
history
diff --git
a/gcc/testsuite/g++.dg/tree-ssa/copyprop.C
b/gcc/testsuite/g++.dg/tree-ssa/copyprop.C
index 8c05895e45ec6ca64d39a1a77e3e0b69acd5b32c..bc9167ad1201f61c28c2c60cf76f31aba71a08a6 100644
(file)
--- a/
gcc/testsuite/g++.dg/tree-ssa/copyprop.C
+++ b/
gcc/testsuite/g++.dg/tree-ssa/copyprop.C
@@
-8,6
+8,11
@@
#include <vector>
#include <iostream>
#include <cstdlib>
+
+#ifdef ERROR
+#undef ERROR
+#endif
+
using namespace std;
template<typename _FIter, typename _Tp> _FIter lower_bound(_FIter, _FIter, _Tp&);
template<class _Key> struct hash { };