// RUN: %clang_cc1 -x objective-c -fsyntax-only -verify -Wno-objc-root-class %s
// RUN: %clang_cc1 -x objective-c++ -fsyntax-only -verify -Wno-objc-root-class %s
// rdar://8843851
// Test2
// object has user declared setter/getter so it won't be
// default synthesized; thus causing user error.
// Test3
// rdar://11671080
// default synthesize property named 'var'
// default synthesis of property 'var'
// no default synthesis. So error is expected.
int* _object;
// With default synthesis, '_object' is be the synthesized ivar not the global
// 'int*' object. So no error.
// rdar://11671080
// expected-warning {{autosynthesized property 'y' will use instance variable '_y', not existing instance variable 'y'}}