[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / warn-c++11-extensions.cpp
blob1670e1187aa909a2c6b2a349e5fb57fc39b81947
1 // RUN: %clang_cc1 -fsyntax-only -std=c++98 -Wc++11-extensions -verify %s
3 long long ll1 = // expected-warning {{'long long' is a C++11 extension}}
4 -42LL; // expected-warning {{'long long' is a C++11 extension}}
5 unsigned long long ull1 = // expected-warning {{'long long' is a C++11 extension}}
6 42ULL; // expected-warning {{'long long' is a C++11 extension}}
8 enum struct E1 { A, B }; // expected-warning {{scoped enumerations are a C++11 extension}}
9 enum class E2 { C, D }; // expected-warning {{scoped enumerations are a C++11 extension}}
11 [[]] void func(); // expected-warning {{[[]] attributes are a C++11 extension}}