blob: 83927b2c7051752570f57c3bfc858399481b800c [file] [log] [blame]
// Make sure we don't trigger use-after-free when we encounter a code completion
// token inside a objc method.
@interface Foo
@end
@implementation Foo
- (void)foo {
// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -code-completion-at=%s:%(line-1):1 %s | FileCheck %s
// CHECK: COMPLETION: self : [#Foo *#]self
[self foo];
}
@end