diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2012-04-14 14:01:31 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2012-04-14 14:01:31 +0000 |
commit | dbe13110f59f48b4dbb7552b3ac2935acdeece7f (patch) | |
tree | be1815eb79b42ff482a8562b13c2dcbf0c5dcbee /test/Index/complete-in-invalid-method.m | |
parent | 9da628931ebf2609493570f87824ca22402cc65f (diff) | |
download | src-dbe13110f59f48b4dbb7552b3ac2935acdeece7f.tar.gz src-dbe13110f59f48b4dbb7552b3ac2935acdeece7f.zip |
Vendor import of clang trunk r154661:vendor/clang/clang-trunk-r154661
Notes
Notes:
svn path=/vendor/clang/dist/; revision=234287
svn path=/vendor/clang/clang-trunk-r154661/; revision=234288; tag=vendor/clang/clang-trunk-r154661
Diffstat (limited to 'test/Index/complete-in-invalid-method.m')
-rw-r--r-- | test/Index/complete-in-invalid-method.m | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Index/complete-in-invalid-method.m b/test/Index/complete-in-invalid-method.m new file mode 100644 index 000000000000..0e6c8e664ce6 --- /dev/null +++ b/test/Index/complete-in-invalid-method.m @@ -0,0 +1,19 @@ +@interface I +-(void)foo; +@end + +struct S { + int x,y; +}; + +@implementation I +-(void) foo { + struct S s; + if (1) { + s. +} +@end + +// RUN: c-index-test -code-completion-at=%s:13:7 -fobjc-nonfragile-abi %s | FileCheck %s +// CHECK: FieldDecl:{ResultType int}{TypedText x} +// CHECK: FieldDecl:{ResultType int}{TypedText y} |