aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.dg/cpp2a/keywords1.C
blob: 7f4dba2d3b7f72545cd17556a41ff4678d9a313c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// PR c++/106111
// { dg-do compile { target c++17_down } }
// { dg-options "-Wc++20-compat -Wc++11-compat -Wc++14-compat -Wc++17-compat" }

int constinit; // { dg-warning "is a keyword in C\\\+\\\+20" }
int consteval; // { dg-warning "is a keyword in C\\\+\\\+20" }
int requires; // { dg-warning "is a keyword in C\\\+\\\+20" }
int concept; // { dg-warning "is a keyword in C\\\+\\\+20" }
int co_await; // { dg-warning "is a keyword in C\\\+\\\+20" }
int co_yield; // { dg-warning "is a keyword in C\\\+\\\+20" }
int co_return; // { dg-warning "is a keyword in C\\\+\\\+20" }
int char8_t; // { dg-warning "is a keyword in C\\\+\\\+20" }