diff options
Diffstat (limited to 'clang/test/CodeCompletion/preamble.c')
| -rw-r--r-- | clang/test/CodeCompletion/preamble.c | 7 | 
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/preamble.c b/clang/test/CodeCompletion/preamble.c new file mode 100644 index 0000000..f322e09 --- /dev/null +++ b/clang/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')  | 
