diff options
author | Jason Merrill <jason@redhat.com> | 2020-05-13 15:15:13 -0400 |
---|---|---|
committer | Giuliano Belinassi <giuliano.belinassi@usp.br> | 2020-08-17 13:03:15 -0300 |
commit | d35bfe8dbf2331b794b6520985372f1e0144f718 (patch) | |
tree | d6f2f5d75324088e5702b176fe60a500ef46301e /gcc | |
parent | a2990530e6b5bc8d08ac46e4ea1c77f80cf88c00 (diff) | |
download | gcc-d35bfe8dbf2331b794b6520985372f1e0144f718.zip gcc-d35bfe8dbf2331b794b6520985372f1e0144f718.tar.gz gcc-d35bfe8dbf2331b794b6520985372f1e0144f718.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 420a04bc..cd1fa6e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 3a6ab87..88f4a9c 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] { |