summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeCompletion/truncation.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/CodeCompletion/truncation.c')
-rw-r--r--clang/test/CodeCompletion/truncation.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/truncation.c b/clang/test/CodeCompletion/truncation.c
new file mode 100644
index 00000000000..b64b0665861
--- /dev/null
+++ b/clang/test/CodeCompletion/truncation.c
@@ -0,0 +1,12 @@
+#include "truncation.c.h"
+
+struct
+
+// RUN: clang-cc -fsyntax-only -code-completion-at=%s.h:4:8 -o - %s | FileCheck -check-prefix=CC1 %s &&
+// CHECK-CC1: X : 1
+// CHECK-NEXT-CC1: Y : 1
+// RUN: clang-cc -fsyntax-only -code-completion-at=%s:3:8 -o - %s | FileCheck -check-prefix=CC2 %s &&
+// CHECK-CC2: X : 1
+// CHECK-CC2: Xa : 1
+// CHECK-CC2: Y : 1
+// RUN: true
OpenPOWER on IntegriCloud