summaryrefslogtreecommitdiffstats
path: root/test/Format/incomplete.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Format/incomplete.cpp')
-rw-r--r--test/Format/incomplete.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Format/incomplete.cpp b/test/Format/incomplete.cpp
new file mode 100644
index 0000000..bd2c74c
--- /dev/null
+++ b/test/Format/incomplete.cpp
@@ -0,0 +1,8 @@
+// RUN: grep -Ev "// *[A-Z-]+:" %s > %t2.cpp
+// RUN: clang-format -style=LLVM %t2.cpp -cursor=0 > %t.cpp
+// RUN: FileCheck -strict-whitespace -input-file=%t.cpp %s
+// CHECK: {{"IncompleteFormat": true}}
+// CHECK: {{^int\ \i;$}}
+ int i;
+// CHECK: {{^f \( g \(;$}}
+f ( g (;
OpenPOWER on IntegriCloud