gcc/testsuite/g++.dg/cpp2a/keywords2.C
raw| 1 | // { dg-do compile { target c++17_down } } |
| 2 | // { dg-options "-Wc++20-compat" } |
| 3 | |
| 4 | // Validate suppression of -Wc++20-compat diagnostics. |
| 5 | #pragma GCC diagnostic ignored "-Wc++20-compat" |
| 6 | int constinit; |
| 7 | int consteval; |
| 8 | int requires; |
| 9 | int concept; |
| 10 | int co_await; |
| 11 | int co_yield; |
| 12 | int co_return; |
| 13 | int char8_t; |