summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/DebugObjC.h
blob: af1cd981ce1c2594da258adfab2c92ebe98e32e5 (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
42
43
44
// -*- ObjC -*-
@class FwdDecl;

@interface ObjCClass {
  int ivar;
}
+ classMethod;
- instanceMethodWithInt:(int)i;
- (struct OpaqueData*) getSomethingOpaque;
@property int property;
@end

@interface ObjCClassWithPrivateIVars {
  int public_ivar;
}
@end

@interface ObjCClass (Category)
- categoryMethod;
@end

@protocol ObjCProtocol

typedef enum {
  e0 = 0
}  InnerEnum;

+ (InnerEnum)protocolMethod;

@end

struct FwdDeclared;
struct FwdDeclared {
  int i;
};
struct PureForwardDecl;

typedef union { int i; } TypedefUnion;
typedef enum { e1 = 1 } TypedefEnum;
typedef struct { int i; } TypedefStruct;

union { int i; } GlobalUnion;
struct { int i; } GlobalStruct;
enum { e2 = 2 } GlobalEnum;
OpenPOWER on IntegriCloud