• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// RUN: %clang_cc1 -fsyntax-only -verify -Wno-objc-root-class %s
2// Test that arithmatic types on property and its ivar have exact match.
3
4@interface Test4
5{
6   char ivar; // expected-note{{ivar is declared here}}
7}
8@property int prop;
9@end
10
11@implementation Test4
12@synthesize prop = ivar;  // expected-error {{type of property 'prop' ('int') does not match type of ivar 'ivar' ('char')}}
13@end
14
15