[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / FixIt / fixit-cxx11-compat.cpp
blob39ae439d266b6b5766f7789a1a24b218e142670c
1 // RUN: %clang_cc1 -Wc++11-compat -verify -std=c++98 %s
2 // RUN: cp %s %t
3 // RUN: not %clang_cc1 -Wc++11-compat -Werror -x c++ -std=c++98 -fixit %t
4 // RUN: %clang_cc1 -Wall -pedantic-errors -Wc++11-compat -Werror -x c++ -std=c++98 %t
6 // This is a test of the code modification hints for C++11-compatibility problems.
8 #define bar "bar"
9 const char *p = "foo"bar; // expected-warning {{will be treated as a reserved user-defined literal suffix}}
10 #define _bar "_bar"
11 const char *q = "foo"_bar; // expected-warning {{will be treated as a user-defined literal suffix}}