diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-07 03:18:34 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-03-07 03:18:34 +0000 |
commit | a269ac0bca3554a4560c076ba1fdae30d3c3990a (patch) | |
tree | 81ff28615494010b58020aa40f681b90dcd7ca22 /clang/test/FixIt/fixit-cxx11-compat.cpp | |
parent | 3e4a60a2cd88173d3c0670715ac3098222b55874 (diff) | |
download | bcm5719-llvm-a269ac0bca3554a4560c076ba1fdae30d3c3990a.tar.gz bcm5719-llvm-a269ac0bca3554a4560c076ba1fdae30d3c3990a.zip |
Test fix-it added in r152198.
llvm-svn: 152199
Diffstat (limited to 'clang/test/FixIt/fixit-cxx11-compat.cpp')
-rw-r--r-- | clang/test/FixIt/fixit-cxx11-compat.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/clang/test/FixIt/fixit-cxx11-compat.cpp b/clang/test/FixIt/fixit-cxx11-compat.cpp new file mode 100644 index 00000000000..3a5ec84a454 --- /dev/null +++ b/clang/test/FixIt/fixit-cxx11-compat.cpp @@ -0,0 +1,9 @@ +// RUN: %clang_cc1 -Wc++11-compat -verify -std=c++98 %s +// RUN: cp %s %t +// RUN: not %clang_cc1 -Wc++11-compat -Werror -x c++ -std=c++98 -fixit %t +// RUN: %clang_cc1 -Wall -pedantic-errors -Wc++11-compat -Werror -x c++ -std=c++98 %t + +// This is a test of the code modification hints for C++11-compatibility problems. + +#define bar "bar" +const char *p = "foo"bar; // expected-warning {{will be treated as a user-defined literal suffix}} |