[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / SemaCXX / warn-c++11-extensions.cpp
blobbf8612aa398ade12ca70f80967a8d0154a9f89e7
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}}