From: Jason Merrill Date: Wed, 13 May 2020 19:15:13 +0000 (-0400) Subject: testsuite: Support { target c++20 } in tests. X-Git-Tag: misc/first-auto-changelog~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3cb34c632222093718fc55f45dde68e97abf9dc;p=thirdparty%2Fgcc.git testsuite: Support { target c++20 } in tests. I'm not sure why I didn't check this in along with adding -std=c++20, since I wrote this patch at the same time. The testsuite should support both { target c++2a } and { target c++20 }. gcc/testsuite/ChangeLog 2020-05-13 Jason Merrill * lib/target-supports.exp (check_effective_target_c++20_only) (check_effective_target_c++20): New. --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 420a04bc89e5..cd1fa6e2237e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2020-05-13 Jason Merrill + + * lib/target-supports.exp (check_effective_target_c++20_only) + (check_effective_target_c++20): New. + 2020-05-13 Jakub Jelinek PR testsuite/95110 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 3a6ab8740c3d..88f4a9cd812c 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -9134,6 +9134,14 @@ proc check_effective_target_c++2a { } { return [check_effective_target_c++2a_only] } +proc check_effective_target_c++20_only { } { + return [check_effective_target_c++2a_only] +} + +proc check_effective_target_c++20 { } { + return [check_effective_target_c++2a] +} + # Check for C++ Concepts support, i.e. -fconcepts flag. proc check_effective_target_concepts { } { if [check_effective_target_c++2a] {