1 |
298 |
jeremybenn |
/* { dg-options "-Wc++-compat" } */
|
2 |
|
|
|
3 |
|
|
_Bool foo; /* This is okay. */
|
4 |
|
|
int bool; /* { dg-warning "5:keyword" } */
|
5 |
|
|
int catch; /* { dg-warning "5:keyword" } */
|
6 |
|
|
int char16_t; /* { dg-warning "5:keyword" } */
|
7 |
|
|
int char32_t; /* { dg-warning "5:keyword" } */
|
8 |
|
|
int class; /* { dg-warning "5:keyword" } */
|
9 |
|
|
int const_cast; /* { dg-warning "5:keyword" } */
|
10 |
|
|
int decltype; /* { dg-warning "5:keyword" } */
|
11 |
|
|
int delete; /* { dg-warning "5:keyword" } */
|
12 |
|
|
int dynamic_cast; /* { dg-warning "5:keyword" } */
|
13 |
|
|
int explicit; /* { dg-warning "5:keyword" } */
|
14 |
|
|
int export; /* { dg-warning "5:keyword" } */
|
15 |
|
|
int false; /* { dg-warning "5:keyword" } */
|
16 |
|
|
int friend; /* { dg-warning "5:keyword" } */
|
17 |
|
|
int mutable; /* { dg-warning "5:keyword" } */
|
18 |
|
|
int namespace; /* { dg-warning "5:keyword" } */
|
19 |
|
|
int new; /* { dg-warning "5:keyword" } */
|
20 |
|
|
int operator; /* { dg-warning "5:keyword" } */
|
21 |
|
|
int private; /* { dg-warning "5:keyword" } */
|
22 |
|
|
int protected; /* { dg-warning "5:keyword" } */
|
23 |
|
|
int public; /* { dg-warning "5:keyword" } */
|
24 |
|
|
int reinterpret_cast; /* { dg-warning "5:keyword" } */
|
25 |
|
|
int static_assert; /* { dg-warning "5:keyword" } */
|
26 |
|
|
int static_cast; /* { dg-warning "5:keyword" } */
|
27 |
|
|
int template; /* { dg-warning "5:keyword" } */
|
28 |
|
|
int this; /* { dg-warning "5:keyword" } */
|
29 |
|
|
int throw; /* { dg-warning "5:keyword" } */
|
30 |
|
|
int true; /* { dg-warning "5:keyword" } */
|
31 |
|
|
int try; /* { dg-warning "5:keyword" } */
|
32 |
|
|
int typename; /* { dg-warning "5:keyword" } */
|
33 |
|
|
int typeid; /* { dg-warning "5:keyword" } */
|
34 |
|
|
int using; /* { dg-warning "5:keyword" } */
|
35 |
|
|
int virtual; /* { dg-warning "5:keyword" } */
|
36 |
|
|
int wchar_t;
|