summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/forward-class-impl-metadata.m
blob: 5dfddde8948675e23b3375d03dd2fe608d034c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// RUN: clang-cc -fobjc-nonfragile-abi -emit-llvm -o %t %s

@interface BASE  {
@private
    void* _reserved;
}
@end

@class PVR;

@interface PVRHandldler 
{
          PVR *_imageBrowser;
}
@end

@implementation PVRHandldler @end


@interface PVR   : BASE
@end

@implementation PVR
@end

// Reopen of an interface after use.

@interface A { 
@public 
  int x; 
} 
@property int p0;
@end

int f0(A *a) { 
  return a.p0; 
}

@implementation A
@synthesize p0 = _p0;
@end
OpenPOWER on IntegriCloud