1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 @interface PBXTrackableTaskManager @end
5 @implementation PBXTrackableTaskManager
6 - (id) init { return 0; }
7 - (void) unregisterTask:(id) task {
9 id taskID = [task taskIdentifier]; // expected-warning {{method '-taskIdentifier' not found (return type defaults to 'id')}}
15 struct x { int a; } b;
18 @synchronized (b) { // expected-error {{@synchronized requires an Objective-C object type ('struct x' invalid)}}
21 @synchronized (42) { // expected-error {{@synchronized requires an Objective-C object type ('int' invalid)}}