diff options
Diffstat (limited to 'clang/test/Format/style-on-command-line.cpp')
-rw-r--r-- | clang/test/Format/style-on-command-line.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Format/style-on-command-line.cpp b/clang/test/Format/style-on-command-line.cpp index 6f81b9bf723..044264b9160 100644 --- a/clang/test/Format/style-on-command-line.cpp +++ b/clang/test/Format/style-on-command-line.cpp @@ -6,6 +6,8 @@ // RUN: [ ! -e %T/.clang-format ] || rm %T/.clang-format // RUN: printf "BasedOnStyle: google\nIndentWidth: 5\n" > %T/.clang-format // RUN: clang-format -style=file %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK5 %s +// RUN: printf "\n" > %T/.clang-format +// RUN: clang-format -style=file %t.cpp 2>&1 | FileCheck -strict-whitespace -check-prefix=CHECK6 %s void f() { // CHECK1: {{^ int\* i;$}} // CHECK2: {{^ int \*i;$}} @@ -15,6 +17,8 @@ void f() { // CHECK4: Error parsing -style: Invalid argument, using LLVM style // CHECK4: {{^ int \*i;$}} // CHECK5: {{^ int\* i;$}} +// CHECK6: Can't find usable .clang-format, using LLVM style +// CHECK6: {{^ int \*i;$}} int*i; int j; } |