libstdc++-v3/ChangeLog:
* testsuite/17_intro/headers/c++1998/all_attributes.cc: Check
"cold" isn't used in the library. Also check <cxxabi.h>.
* testsuite/17_intro/headers/c++2011/all_attributes.cc:
Likewise.
* testsuite/17_intro/headers/c++2014/all_attributes.cc:
Likewise.
* testsuite/17_intro/headers/c++2017/all_attributes.cc:
Likewise.
* testsuite/17_intro/headers/c++2020/all_attributes.cc:
Likewise.
// Ensure the library only uses the __name__ form for attributes.
// Don't test 'const' because it is reserved anyway.
#define abi_tag 1
+#define cold 1
#ifndef __APPLE__
// darwin headers use these, see PR 64883
# define always_inline 1
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
// Ensure the library only uses the __name__ form for attributes.
// Don't test 'const' and 'noreturn' because they are reserved anyway.
#define abi_tag 1
+#define cold 1
#ifndef __APPLE__
// darwin headers use these, see PR 64883
# define always_inline 1
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
// Ensure the library only uses the __name__ form for attributes.
// Don't test 'const' and 'noreturn' because they are reserved anyway.
#define abi_tag 1
+#define cold 1
#ifndef __APPLE__
// darwin headers use these, see PR 64883
# define always_inline 1
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
// Ensure the library only uses the __name__ form for attributes.
// Don't test 'const' and 'noreturn' because they are reserved anyway.
#define abi_tag 1
+#define cold 1
#ifndef __APPLE__
// darwin headers use these, see PR 64883
# define always_inline 1
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
// Ensure the library only uses the __name__ form for attributes.
// Don't test 'const' and 'noreturn' because they are reserved anyway.
#define abi_tag 1
+#define cold 1
#ifndef __APPLE__
// darwin headers use these, see PR 64883
# define always_inline 1
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()