1f4a2713aSLionel Sambuc // RUN: %clang_cc1 -verify -std=c++11 %s 2f4a2713aSLionel Sambuc // RUN: cp %s %t 3f4a2713aSLionel Sambuc // RUN: %clang_cc1 -x c++ -std=c++11 -fixit %t 4f4a2713aSLionel Sambuc // RUN: %clang_cc1 -Wall -pedantic-errors -Werror -x c++ -std=c++11 %t 5f4a2713aSLionel Sambuc // RUN: %clang_cc1 -Wall -pedantic-errors -Werror -x c++ -std=c++1y %t 6f4a2713aSLionel Sambuc 7f4a2713aSLionel Sambuc // This is a test of the code modification hints for C++1y-compatibility problems. 8f4a2713aSLionel Sambuc 9f4a2713aSLionel Sambuc struct S { 10*0a6a1f1dSLionel Sambuc 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}} 11f4a2713aSLionel Sambuc int &f(); 12f4a2713aSLionel Sambuc }; 13