diff options
author | dim <dim@FreeBSD.org> | 2012-05-03 16:53:59 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-05-03 16:53:59 +0000 |
commit | 822bde9df508e0b9afac5e581b0d6ab403417a28 (patch) | |
tree | 2e51705e103e92c7be1b21e8bd8ffd5b5d0e4d52 /test/CodeCompletion | |
parent | 50b73317314e889cf39c7b1d6cbf419fa7502f22 (diff) | |
download | FreeBSD-src-822bde9df508e0b9afac5e581b0d6ab403417a28.zip FreeBSD-src-822bde9df508e0b9afac5e581b0d6ab403417a28.tar.gz |
Vendor import of clang release_31 branch r155985:
http://llvm.org/svn/llvm-project/cfe/branches/release_31@155985
Diffstat (limited to 'test/CodeCompletion')
-rw-r--r-- | test/CodeCompletion/preamble.c | 7 | ||||
-rw-r--r-- | test/CodeCompletion/some_struct.h | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeCompletion/preamble.c b/test/CodeCompletion/preamble.c new file mode 100644 index 0000000..f322e09 --- /dev/null +++ b/test/CodeCompletion/preamble.c @@ -0,0 +1,7 @@ +#include "some_struct.h" +void foo() { + struct X x; + x. + +// RUN: env CINDEXTEST_EDITING=1 c-index-test -code-completion-at=%s:4:5 -Xclang -code-completion-patterns %s | FileCheck -check-prefix=CHECK-CC1 %s +// CHECK-CC1: FieldDecl:{ResultType int}{TypedText m} (35) (parent: StructDecl 'X') diff --git a/test/CodeCompletion/some_struct.h b/test/CodeCompletion/some_struct.h new file mode 100644 index 0000000..63aa2a3 --- /dev/null +++ b/test/CodeCompletion/some_struct.h @@ -0,0 +1 @@ +struct X { int m; }; |