clang-format: Add basic test for -style=none.
authorDaniel Jasper <djasper@google.com>
Thu, 22 May 2014 15:13:48 +0000 (15:13 +0000)
committerDaniel Jasper <djasper@google.com>
Thu, 22 May 2014 15:13:48 +0000 (15:13 +0000)
llvm-svn: 209447

clang/test/Format/disable-format.cpp [new file with mode: 0644]

diff --git a/clang/test/Format/disable-format.cpp b/clang/test/Format/disable-format.cpp
new file mode 100644 (file)
index 0000000..59484b3
--- /dev/null
@@ -0,0 +1,6 @@
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t.cpp
+// RUN: clang-format -style=none -i %t.cpp
+// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s
+
+// CHECK: int   i;
+int   i;