[cfe-commits] r158238 - /cfe/trunk/test/FixIt/messages.cpp
Jordan Rose
jordan_rose at apple.com
Fri Jun 8 15:46:04 PDT 2012
Author: jrose
Date: Fri Jun 8 17:46:04 2012
New Revision: 158238
URL: http://llvm.org/viewvc/llvm-project?rev=158238&view=rev
Log:
Add a test for r158229 (overlapping fixits). This was PR10696!
Added:
cfe/trunk/test/FixIt/messages.cpp
Added: cfe/trunk/test/FixIt/messages.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/FixIt/messages.cpp?rev=158238&view=auto
==============================================================================
--- cfe/trunk/test/FixIt/messages.cpp (added)
+++ cfe/trunk/test/FixIt/messages.cpp Fri Jun 8 17:46:04 2012
@@ -0,0 +1,13 @@
+// RUN: %clang_cc1 -fsyntax-only -std=c++11 2>&1 %s | FileCheck -strict-whitespace %s
+
+struct A {
+ unsigned int a;
+};
+
+// PR10696
+void testOverlappingInsertions(int b) {
+ A var = { b };
+ // CHECK: A var = { b };
+ // CHECK: ^
+ // CHECK: static_cast<unsigned int>( )
+}
More information about the cfe-commits
mailing list