1 /* { dg-options "-Wc++-compat" } */
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 constexpr; /* { dg-warning "5:keyword" } */
11 int decltype; /* { dg-warning "5:keyword" } */
12 int delete; /* { dg-warning "5:keyword" } */
13 int dynamic_cast; /* { dg-warning "5:keyword" } */
14 int explicit; /* { dg-warning "5:keyword" } */
15 int export
; /* { dg-warning "5:keyword" } */
16 int false; /* { dg-warning "5:keyword" } */
17 int friend; /* { dg-warning "5:keyword" } */
18 int mutable; /* { dg-warning "5:keyword" } */
19 int namespace; /* { dg-warning "5:keyword" } */
20 int new; /* { dg-warning "5:keyword" } */
21 int nullptr; /* { dg-warning "5:keyword" } */
22 int operator; /* { dg-warning "5:keyword" } */
23 int private; /* { dg-warning "5:keyword" } */
24 int protected; /* { dg-warning "5:keyword" } */
25 int public; /* { dg-warning "5:keyword" } */
26 int reinterpret_cast; /* { dg-warning "5:keyword" } */
27 int static_assert; /* { dg-warning "5:keyword" } */
28 int static_cast; /* { dg-warning "5:keyword" } */
29 int template; /* { dg-warning "5:keyword" } */
30 int this; /* { dg-warning "5:keyword" } */
31 int throw; /* { dg-warning "5:keyword" } */
32 int true; /* { dg-warning "5:keyword" } */
33 int try; /* { dg-warning "5:keyword" } */
34 int typename
; /* { dg-warning "5:keyword" } */
35 int typeid; /* { dg-warning "5:keyword" } */
36 int using; /* { dg-warning "5:keyword" } */
37 int virtual; /* { dg-warning "5:keyword" } */