[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / FixIt / fixit-cxx1y-compat.cpp
blob819e3984c352b2f163f94304d6bdf699869c7337
1 // RUN: %clang_cc1 -verify -std=c++11 %s
2 // RUN: cp %s %t
3 // RUN: %clang_cc1 -x c++ -std=c++11 -fixit %t
4 // RUN: %clang_cc1 -Wall -pedantic-errors -Werror -x c++ -std=c++11 %t
5 // RUN: %clang_cc1 -Wall -pedantic-errors -Werror -x c++ -std=c++1y %t
7 // This is a test of the code modification hints for C++1y-compatibility problems.
9 struct S {
10 constexpr int &f(); // expected-warning {{'constexpr' non-static member function will not be implicitly 'const' in C++14; add 'const' to avoid a change in behavior}}
11 int &f();