mirror of git://gcc.gnu.org/git/gcc.git
Fix libstdc++ reserved names test to pass on AIX
* testsuite/17_intro/names.cc: Undefine macros that clash with identifiers in AIX system headers. From-SVN: r246037
This commit is contained in:
parent
7dcc645ccd
commit
da0ced6eb8
|
|
@ -1,5 +1,8 @@
|
||||||
2017-03-10 Jonathan Wakely <jwakely@redhat.com>
|
2017-03-10 Jonathan Wakely <jwakely@redhat.com>
|
||||||
|
|
||||||
|
* testsuite/17_intro/names.cc: Undefine macros that clash with
|
||||||
|
identifiers in AIX system headers.
|
||||||
|
|
||||||
* include/bits/invoke.h (__invoke): Use __invoke_result instead of
|
* include/bits/invoke.h (__invoke): Use __invoke_result instead of
|
||||||
result_of, and __is_nothrow_invocable instead of
|
result_of, and __is_nothrow_invocable instead of
|
||||||
__is_nothrow_callable.
|
__is_nothrow_callable.
|
||||||
|
|
|
||||||
|
|
@ -98,4 +98,13 @@
|
||||||
#define x (
|
#define x (
|
||||||
#define y (
|
#define y (
|
||||||
#define z (
|
#define z (
|
||||||
|
|
||||||
|
#ifdef _AIX
|
||||||
|
// See https://gcc.gnu.org/ml/libstdc++/2017-03/msg00015.html
|
||||||
|
#undef f
|
||||||
|
#undef r
|
||||||
|
#undef x
|
||||||
|
#undef y
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <bits/stdc++.h>
|
#include <bits/stdc++.h>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue