mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 02:56:37 +00:00

When we have a category implementation without a corresponding interface (which is an error by itself), semantic checks for property accesses will attempt to access a null interface declaration and then segfault. Error out in such cases instead. Differential Revision: https://reviews.llvm.org/D44916 llvm-svn: 328654
10 lines
247 B
Objective-C
10 lines
247 B
Objective-C
// RUN: %clang_cc1 -fsyntax-only -verify %s
|
|
|
|
@implementation I (C) // expected-error {{cannot find interface declaration for 'I'}}
|
|
|
|
+ (void)f {
|
|
self.m; // expected-error {{member reference base type 'Class' is not a structure or union}}
|
|
}
|
|
|
|
@end
|