diff options
author | Jerome Lambourg <lambourg@adacore.com> | 2021-01-01 01:55:01 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2021-01-01 01:56:25 -0300 |
commit | 8aba274de204e1d401a20b95d78555f045ae49f0 (patch) | |
tree | 637dc35b32067d622f9f81aff14559caa56aeb30 /gcc | |
parent | af655dee7958c1cbcc087ca18902ed2cd570cda8 (diff) | |
download | gcc-8aba274de204e1d401a20b95d78555f045ae49f0.zip gcc-8aba274de204e1d401a20b95d78555f045ae49f0.tar.gz gcc-8aba274de204e1d401a20b95d78555f045ae49f0.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/g++.dg/tree-ssa/copyprop.C | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.dg/tree-ssa/copyprop.C b/gcc/testsuite/g++.dg/tree-ssa/copyprop.C index 8c05895..bc9167a 100644 --- 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 { }; |