summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/property-nonfragile-abi.m
blob: 31d415e2ace917c6897ebda157fee1cbde3c6d56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// RUN: clang-cc -fsyntax-only -triple x86_64-apple-darwin9 -verify %s 

typedef signed char BOOL;

@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;

@protocol NSObject
- (BOOL)isEqual:(id)object;
@end

@interface NSObject <NSObject> {}
@end

@interface XCDeviceWillExecuteInfoBaton : NSObject {}
  @property (retain) __attribute__((objc_gc(strong))) NSString *sdkPath;
@end

@implementation XCDeviceWillExecuteInfoBaton
  // Produce an error when compiling for -arch x86_64 (or "non-fragile" ABI)
  @synthesize sdkPath; // expected-error{{instance variable synthesis not yet supported (need to declare 'sdkPath' explicitly)}}
@end

OpenPOWER on IntegriCloud