]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Uncomment __cpp_consteval test
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Jun 2021 07:46:08 +0000 (09:46 +0200)
committerJakub Jelinek <jakub@redhat.com>
Thu, 10 Jun 2021 07:46:08 +0000 (09:46 +0200)
The __cpp_consteval macro and corresponding test have been initially
commented out because the consteval support didn't have virtual consteval
method support.  The r11-1789-ge6321c4508b2a85c21246c1c06a8208e2a151e48
change enabled the macro but didn't enable the corresponding test.

2021-06-10  Jakub Jelinek  <jakub@redhat.com>

* g++.dg/cpp2a/feat-cxx2a.C: Uncomment __cpp_consteval test.
* g++.dg/cpp23/feat-cxx2b.C: Likewise.

gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C
gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C

index 4a342e967f87c27571d6e90b3baff6445fc0e76e..283a8bae31ef61db379183e904eabf4630bf67be 100644 (file)
 #  error "__cpp_constexpr_in_decltype != 201711"
 #endif
 
-/* Not supported fully yet:
 #ifndef __cpp_consteval
 #  error "__cpp_consteval"
 #elif __cpp_consteval != 201811
 #  error "__cpp_consteval != 201811"
 #endif
-*/
 
 #ifndef __cpp_concepts
 #  error "__cpp_concepts"
index dc46e48f6d746057a5f5d381246e0809ef7e182c..3239df824fca00aa9ff55dd8c5e1155079ae5422 100644 (file)
 #  error "__cpp_constexpr_in_decltype != 201711"
 #endif
 
-/* Not supported fully yet:
 #ifndef __cpp_consteval
 #  error "__cpp_consteval"
 #elif __cpp_consteval != 201811
 #  error "__cpp_consteval != 201811"
 #endif
-*/
 
 #ifndef __cpp_concepts
 #  error "__cpp_concepts"