14 lines · plain
1// Make sure we don't trigger use-after-free when we encounter a code completion2// token inside a objc method.3@interface Foo4@end5 6@implementation Foo7- (void)foo {8 9// RUN: %clang_cc1 -fsyntax-only -Wno-objc-root-class -code-completion-at=%s:%(line-1):1 %s | FileCheck %s10// CHECK: COMPLETION: self : [#Foo *#]self11 [self foo];12}13@end14