diff options
Diffstat (limited to 'clang/test/CodeCompletion/member-access.c')
-rw-r--r-- | clang/test/CodeCompletion/member-access.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeCompletion/member-access.c b/clang/test/CodeCompletion/member-access.c new file mode 100644 index 0000000..f41c509 --- /dev/null +++ b/clang/test/CodeCompletion/member-access.c @@ -0,0 +1,12 @@ +struct Point { + float x; + float y; + float z; +}; + +void test(struct Point *p) { + p-> + // RUN: %clang_cc1 -fsyntax-only -code-completion-at=%s:8:6 %s -o - | FileCheck -check-prefix=CC1 %s + // CHECK-CC1: x + // CHECK-CC1: y + // CHECK-CC1: z |