brintos

brintos / llvm-project-archived public Read only

0
0
Text · 564 B · 39ae439 Raw
12 lines · cpp
1// RUN: %clang_cc1 -Wc++11-compat -verify -std=c++98 %s2// RUN: cp %s %t3// RUN: not %clang_cc1 -Wc++11-compat -Werror -x c++ -std=c++98 -fixit %t4// RUN: %clang_cc1 -Wall -pedantic-errors -Wc++11-compat -Werror -x c++ -std=c++98 %t5 6// This is a test of the code modification hints for C++11-compatibility problems.7 8#define bar "bar"9const char *p = "foo"bar; // expected-warning {{will be treated as a reserved user-defined literal suffix}}10#define _bar "_bar"11const char *q = "foo"_bar; // expected-warning {{will be treated as a user-defined literal suffix}}12