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  <jason@redhat.com>

	* lib/target-supports.exp (check_effective_target_c++20_only)
	(check_effective_target_c++20): New.
This commit is contained in:
Jason Merrill 2020-05-13 15:15:13 -04:00
parent 0d5d880994
commit c3cb34c632
2 changed files with 13 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2020-05-13 Jason Merrill <jason@redhat.com>
* lib/target-supports.exp (check_effective_target_c++20_only)
(check_effective_target_c++20): New.
2020-05-13 Jakub Jelinek <jakub@redhat.com>
PR testsuite/95110

View File

@ -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] {