diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 18:10:23 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-24 18:10:23 +0000 |
| commit | fd3da9358f740487b5a7c9dd7317c06afb7cf643 (patch) | |
| tree | f46f121a02cfedc93d331f14e19513c866ceb7c8 /clang/test/SemaCXX/cxx98-compat.cpp | |
| parent | 5e6842bfea737f7f3b61ae9e1df4c618a3d25f46 (diff) | |
| download | bcm5719-llvm-fd3da9358f740487b5a7c9dd7317c06afb7cf643.tar.gz bcm5719-llvm-fd3da9358f740487b5a7c9dd7317c06afb7cf643.zip | |
__decltype is a GNU extension, not a C++11 extension.
llvm-svn: 151377
Diffstat (limited to 'clang/test/SemaCXX/cxx98-compat.cpp')
| -rw-r--r-- | clang/test/SemaCXX/cxx98-compat.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/SemaCXX/cxx98-compat.cpp b/clang/test/SemaCXX/cxx98-compat.cpp index b7abe266f2d..879c72211d1 100644 --- a/clang/test/SemaCXX/cxx98-compat.cpp +++ b/clang/test/SemaCXX/cxx98-compat.cpp @@ -99,6 +99,7 @@ char16_t c16 = 0; // expected-warning {{'char16_t' type specifier is incompatibl char32_t c32 = 0; // expected-warning {{'char32_t' type specifier is incompatible with C++98}} constexpr int const_expr = 0; // expected-warning {{'constexpr' specifier is incompatible with C++98}} decltype(const_expr) decl_type = 0; // expected-warning {{'decltype' type specifier is incompatible with C++98}} +__decltype(const_expr) decl_type2 = 0; // ok void no_except() noexcept; // expected-warning {{noexcept specifications are incompatible with C++98}} bool no_except_expr = noexcept(1 + 1); // expected-warning {{noexcept expressions are incompatible with C++98}} void *null = nullptr; // expected-warning {{'nullptr' is incompatible with C++98}} |

