Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/keywords2.C

raw
1 // { dg-do compile { target c++98_only } }
2 // { dg-options "-Wc++11-compat" }
3
4 // Validate suppression of -Wc++11-compat diagnostics.
5 #pragma GCC diagnostic ignored "-Wc++11-compat"
6 int alignof;
7 int alignas;
8 int constexpr;
9 int decltype;
10 int noexcept;
11 int nullptr;
12 int static_assert;
13 int thread_local;
14 int _Alignas;
15 int _Alignof;
16 int _Thread_local;