blob: 3a5ec84a45498ddc5c0413f530d46b881617ce97 [file] [log] [blame]
Richard Smithb65e24a2012-03-07 03:18:34 +00001// 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
5
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 user-defined literal suffix}}