diff mbox

[committed] hpux: Fix testsuite/17_intro/names.cc failure

Message ID 99F33B4D-E819-4412-98D6-996934EBD53F@bell.net
State New
Headers show

Commit Message

John David Anglin Aug. 20, 2017, 6:58 p.m. UTC
On hpux, the namespace for 'd' and 'r' is not clean, so we need to undef them in the test.  More
info is available in PR testsuite/81056.

Dave
--
John David Anglin	dave.anglin@bell.net
2017-08-20  John David Anglin  <danglin@gcc.gnu.org>

	PR testsuite/81056
	* testsuite/17_intro/names.cc: Undef 'd' and 'r' on __hpux__
diff mbox

Patch

Index: testsuite/17_intro/names.cc
===================================================================
--- testsuite/17_intro/names.cc	(revision 248710)
+++ testsuite/17_intro/names.cc	(working copy)
@@ -107,4 +107,9 @@ 
 #undef y
 #endif
 
+#ifdef __hpux__
+#undef d
+#undef r
+#endif
+
 #include <bits/stdc++.h>