summaryrefslogtreecommitdiff
path: root/test/Format
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-05-22 15:13:48 +0000
committerDaniel Jasper <djasper@google.com>2014-05-22 15:13:48 +0000
commit431f0c250b4e53f16be0bf09042a8ad0c71bd305 (patch)
tree152e4f9bee2b14f30539dba71a0d5956c03ab50a /test/Format
parenta065461c16984d11995b2fc4f5101bc3dea8a44f (diff)
clang-format: Add basic test for -style=none.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Format')
-rw-r--r--test/Format/disable-format.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Format/disable-format.cpp b/test/Format/disable-format.cpp
new file mode 100644
index 0000000000..59484b3df1
--- /dev/null
+++ b/test/Format/disable-format.cpp
@@ -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;