[cfe-commits] r152199 - /cfe/trunk/test/FixIt/fixit-cxx11-compat.cpp
Richard Smith
richard-llvm at metafoo.co.uk
Tue Mar 6 19:18:34 PST 2012
Author: rsmith
Date: Tue Mar 6 21:18:34 2012
New Revision: 152199
URL: http://llvm.org/viewvc/llvm-project?rev=152199&view=rev
Log:
Test fix-it added in r152198.
Added:
cfe/trunk/test/FixIt/fixit-cxx11-compat.cpp
Added: cfe/trunk/test/FixIt/fixit-cxx11-compat.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/fixit-cxx11-compat.cpp?rev=152199&view=auto
==============================================================================
--- cfe/trunk/test/FixIt/fixit-cxx11-compat.cpp (added)
+++ cfe/trunk/test/FixIt/fixit-cxx11-compat.cpp Tue Mar 6 21:18:34 2012
@@ -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}}
More information about the cfe-commits
mailing list