]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add "cold" to tests for reserved attribute names
authorJonathan Wakely <jwakely@redhat.com>
Tue, 18 Aug 2020 14:37:14 +0000 (15:37 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 18 Aug 2020 14:37:33 +0000 (15:37 +0100)
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.

libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc
libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc
libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc
libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc
libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc

index 73a20e346e49bd0f6351c6f32fba760f70eda220..dd28429e1d555564343f0d00bcd85b0e95d009d1 100644 (file)
@@ -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()
index c0a79e06ddc75ee35192e47c70aef43ef77e7187..db00a33f6a388c27738c98b180334df7d4ac6bb4 100644 (file)
@@ -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()
index 1e3ba0888a033ff173a17b443a25ec8367271b6e..3322c2c1362404a81e5bd8147795614bbb7eef41 100644 (file)
@@ -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()
index 035526e24cbe4057480ea31af965414b19383fc3..a0d67739d7197b9303d5ac7094324a0260c71997 100644 (file)
@@ -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()
index 6f5ea460facecca1749739755361b732ed78e2be..da8f0e415a3770fbcfdcfabe01f6d6bcedeab8eb 100644 (file)
@@ -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()