summaryrefslogtreecommitdiffstats
path: root/test/Format/diagnostic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Format/diagnostic.cpp')
-rw-r--r--test/Format/diagnostic.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Format/diagnostic.cpp b/test/Format/diagnostic.cpp
new file mode 100644
index 0000000..2e930ee
--- /dev/null
+++ b/test/Format/diagnostic.cpp
@@ -0,0 +1,4 @@
+// RUN: clang-format 2>&1 >/dev/null %s |FileCheck %s
+
+}
+// CHECK: diagnostic.cpp:[[@LINE-1]]:1: error: unexpected '}'
OpenPOWER on IntegriCloud