You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
448 B
21 lines
448 B
// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
|
|
|
|
@interface PBXTrackableTaskManager @end
|
|
@implementation PBXTrackableTaskManager @end
|
|
|
|
struct x {
|
|
operator PBXTrackableTaskManager *() const { return 0; }
|
|
} a;
|
|
|
|
struct y {
|
|
operator int *() const { return 0; }
|
|
} b;
|
|
|
|
void test1() {
|
|
@synchronized (a) {
|
|
}
|
|
|
|
@synchronized (b) { // expected-error {{@synchronized requires an Objective-C object type ('struct y' invalid)}}
|
|
}
|
|
}
|