reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
// 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)}}
  }
}