From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1725) id EFB3138708D5; Tue, 18 Aug 2020 18:43:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EFB3138708D5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597776186; bh=vk10MxzeictYUxwPbeOQvqERNTNkTEW5axmxVpmKXk4=; h=From:To:Subject:Date:From; b=gGLyqG5tmVGDo2XV1CD0/clM7XmRiubzMsQpEzn+DaooJC0AOvyosDOOBv2ki7d3r Td9eq/ssNU427DVZHQxddqBn3dWJHvN+I/THzuBfqk69DahoXt6xOtame4njG1pUiE Yj3/D7KOh/JtJsn5HKVCA+WcchmU8H0jRDgFS9Pw= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: William Schmidt To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/users/wschmidt/heads/builtins3)] libstdc++: Add "cold" to tests for reserved attribute names X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/users/wschmidt/heads/builtins3 X-Git-Oldrev: d850dec9b7bd02ef925def138894402038cca78d X-Git-Newrev: 6c1a58b7fbdaa8ac00957fccfb379af163309311 Message-Id: <20200818184306.EFB3138708D5@sourceware.org> Date: Tue, 18 Aug 2020 18:43:06 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Aug 2020 18:43:07 -0000 https://gcc.gnu.org/g:6c1a58b7fbdaa8ac00957fccfb379af163309311 commit 6c1a58b7fbdaa8ac00957fccfb379af163309311 Author: Jonathan Wakely 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 . * 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: --- libstdc++-v3/testsuite/17_intro/headers/c++1998/all_attributes.cc | 2 ++ libstdc++-v3/testsuite/17_intro/headers/c++2011/all_attributes.cc | 2 ++ libstdc++-v3/testsuite/17_intro/headers/c++2014/all_attributes.cc | 2 ++ libstdc++-v3/testsuite/17_intro/headers/c++2017/all_attributes.cc | 2 ++ libstdc++-v3/testsuite/17_intro/headers/c++2020/all_attributes.cc | 2 ++ 5 files changed, 10 insertions(+) diff --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 +#include int main() diff --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 +#include int main() diff --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 +#include int main() diff --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 +#include int main() diff --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 +#include int main()