llvm-capstone/clang/test/FixIt/typo-crash.m
Douglas Gregor 0c8a172911 Fix a crash with ill-formed code within a method in an ill-formed
category implementation, which showed up during (attempted) typo
correction. Fixes <rdar://problem/7605289>.

llvm-svn: 95334
2010-02-04 23:42:48 +00:00

7 lines
267 B
Objective-C

// RUN: %clang_cc1 -fsyntax-only -verify %s
// <rdar://problem/7605289>
@implementation Unknown (Blarg) // expected-error{{cannot find interface declaration for 'Unknown'}}
- (int)method { return ivar; } // expected-error{{use of undeclared identifier 'ivar'}}
@end