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.
+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
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] {