commit | b7fb5e6f4b5a0ce5bd8df5ba38b64db3fd10bdda | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Mon Mar 25 09:14:25 2013 +0000 |
committer | Daniel Jasper <djasper@google.com> | Mon Mar 25 09:14:25 2013 +0000 |
tree | 417537f9270e38d985bdb8b85532d301fb10c4f4 | |
parent | 83c10c9d3817380d9078238fca8ba4cfd7548719 [diff] [blame] |
Re-add clang-format tests to clang/test. Also now use -strict-whitespace as the tests are confusing otherwise. llvm-svn: 177853
diff --git a/clang/test/Format/basic.cpp b/clang/test/Format/basic.cpp new file mode 100644 index 0000000..375bbd2 --- /dev/null +++ b/clang/test/Format/basic.cpp
@@ -0,0 +1,6 @@ +// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp +// RUN: clang-format -i %t.cpp +// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s + +// CHECK: {{^int\ \*i;}} + int * i ;