xref: /minix3/external/bsd/llvm/dist/clang/test/FixIt/fixit-cxx11-compat.cpp (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -Wc++11-compat -verify -std=c++98 %s
2*f4a2713aSLionel Sambuc // RUN: cp %s %t
3*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -Wc++11-compat -Werror -x c++ -std=c++98 -fixit %t
4*f4a2713aSLionel Sambuc // RUN: %clang_cc1 -Wall -pedantic-errors -Wc++11-compat -Werror -x c++ -std=c++98 %t
5*f4a2713aSLionel Sambuc 
6*f4a2713aSLionel Sambuc // This is a test of the code modification hints for C++11-compatibility problems.
7*f4a2713aSLionel Sambuc 
8*f4a2713aSLionel Sambuc #define bar "bar"
9*f4a2713aSLionel Sambuc const char *p = "foo"bar; // expected-warning {{will be treated as a reserved user-defined literal suffix}}
10*f4a2713aSLionel Sambuc #define _bar "_bar"
11*f4a2713aSLionel Sambuc const char *q = "foo"_bar; // expected-warning {{will be treated as a user-defined literal suffix}}
12