From c72c57c9e9b69944e3e009cd5e209634839581d3 Mon Sep 17 00:00:00 2001 From: dim Date: Mon, 8 Apr 2013 18:45:10 +0000 Subject: Vendor import of clang trunk r178860: http://llvm.org/svn/llvm-project/cfe/trunk@178860 --- test/Format/ranges.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 test/Format/ranges.cpp (limited to 'test/Format/ranges.cpp') diff --git a/test/Format/ranges.cpp b/test/Format/ranges.cpp new file mode 100644 index 0000000..0244fc1 --- /dev/null +++ b/test/Format/ranges.cpp @@ -0,0 +1,11 @@ +// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp +// RUN: clang-format -offset=2 -length=0 -offset=28 -length=0 -i %t.cpp +// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s +// CHECK: {{^int\ \*i;$}} + int*i; + +// CHECK: {{^\ \ int\ \ \*\ \ i;$}} + int * i; + +// CHECK: {{^\ \ int\ \*i;$}} + int * i; -- cgit v1.1