summaryrefslogtreecommitdiff
path: root/test/Format/dry-run.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Format/dry-run.cpp')
-rw-r--r--test/Format/dry-run.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Format/dry-run.cpp b/test/Format/dry-run.cpp
new file mode 100644
index 0000000000..9d6cd34204
--- /dev/null
+++ b/test/Format/dry-run.cpp
@@ -0,0 +1,4 @@
+// RUN: clang-format -style=LLVM -i --dry-run %s 2> %t.stderr
+// RUN: grep -E "*code should be clang-formatted*" %t.stderr
+
+int a ;