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