public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/c++-coroutines] libstdc++: Add "cold" to tests for reserved attribute names
@ 2020-08-18 18:57 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2020-08-18 18:57 UTC (permalink / raw)
To: gcc-cvs, libstdc++-cvs
https://gcc.gnu.org/g:6c1a58b7fbdaa8ac00957fccfb379af163309311
commit 6c1a58b7fbdaa8ac00957fccfb379af163309311
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Tue Aug 18 15:37:14 2020 +0100
libstdc++: Add "cold" to tests for reserved attribute names
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.
Diff:
---
| 2 ++
| 2 ++
| 2 ++
| 2 ++
| 2 ++
5 files changed, 10 insertions(+)
--git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc
index 73a20e346e4..dd28429e1d5 100644
--- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc
@@ -21,6 +21,7 @@
// 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
@@ -36,6 +37,7 @@
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
--git a/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc
index c0a79e06ddc..db00a33f6a3 100644
--- a/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc
@@ -21,6 +21,7 @@
// 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
@@ -35,6 +36,7 @@
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
--git a/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc
index 1e3ba0888a0..3322c2c1362 100644
--- a/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc
@@ -21,6 +21,7 @@
// 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
@@ -35,6 +36,7 @@
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
--git a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc
index 035526e24cb..a0d67739d71 100644
--- a/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc
@@ -21,6 +21,7 @@
// 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
@@ -34,6 +35,7 @@
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
--git a/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc b/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc
index 6f5ea460fac..da8f0e415a3 100644
--- a/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc
+++ b/libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc
@@ -21,6 +21,7 @@
// 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
@@ -34,6 +35,7 @@
#endif
#include <bits/extc++.h>
+#include <cxxabi.h>
int
main()
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-08-18 18:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-18 18:57 [gcc/devel/c++-coroutines] libstdc++: Add "cold" to tests for reserved attribute names Iain D Sandoe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).