diff options
Diffstat (limited to 'test/Format/adjust-indent.cpp')
-rw-r--r-- | test/Format/adjust-indent.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/Format/adjust-indent.cpp b/test/Format/adjust-indent.cpp new file mode 100644 index 0000000..5565dc0 --- /dev/null +++ b/test/Format/adjust-indent.cpp @@ -0,0 +1,10 @@ +// RUN: grep -Ev "// *[A-Z-]+:" %s | clang-format -lines=2:2 \ +// RUN: | FileCheck -strict-whitespace %s + +void f() { +// CHECK: void f() { +int i; +// CHECK: {{^ int\ i;}} + int j; +// CHECK: {{^ int\ j;}} +} |