2012-06-20 14:18:46 +08:00
|
|
|
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin11 -fsyntax-only -fobjc-runtime=macosx-fragile-10.5 -verify -Wno-objc-root-class %s
|
2012-01-25 02:05:45 +08:00
|
|
|
// rdar://10731065
|
|
|
|
|
|
|
|
@interface MyView {}
|
|
|
|
@end
|
|
|
|
|
|
|
|
@implementation MyViewTemplate // expected-warning {{cannot find interface declaration for 'MyViewTemplate'}}
|
|
|
|
- (id) createRealObject {
|
|
|
|
id realObj;
|
2012-01-25 03:40:13 +08:00
|
|
|
*(MyView *) realObj = *(MyView *) self; // expected-error {{cannot assign to class object}}
|
2012-01-25 02:05:45 +08:00
|
|
|
}
|
|
|
|
@end
|
|
|
|
|