diff options
Diffstat (limited to 'test/Format/line-ranges.cpp')
-rw-r--r-- | test/Format/line-ranges.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Format/line-ranges.cpp b/test/Format/line-ranges.cpp new file mode 100644 index 0000000..370445a --- /dev/null +++ b/test/Format/line-ranges.cpp @@ -0,0 +1,11 @@ +// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp +// RUN: clang-format -style=LLVM -lines=1:1 -lines=5:5 -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; |