testsuite: Support { target c++20 } in tests.
authorJason Merrill <jason@redhat.com>
Wed, 13 May 2020 19:15:13 +0000 (15:15 -0400)
committerJason Merrill <jason@redhat.com>
Wed, 13 May 2020 19:16:49 +0000 (15:16 -0400)
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.

gcc/testsuite/ChangeLog
gcc/testsuite/lib/target-supports.exp

index 420a04bc89e534b8670f6bde7485b43c25c43edb..cd1fa6e2237e7ff4e47c052e02e1ad1c01036d61 100644 (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
index 3a6ab8740c3d3579f934c21920634ffab41992d3..88f4a9cd812c4e6a20a04186c4b1b259afebbaad 100644 (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] {