[Heikki Kultala] This patch contains the ABI changes for the TCE target.
[clang.git] / test / SemaObjC / class-getter-using-dotsyntax.m
blob6454bc013c1a2b7bfa3770a6ed52908bbbbeed8e
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 typedef struct objc_class *Class;
5 struct objc_class {
6     Class isa;
7 };
9 typedef struct objc_object {
10     Class isa;
11 } *id;
13 @interface XCActivityLogSection 
14 + (unsigned)serializationFormatVersion;
15 + (unsigned)sectionByDeserializingData;
16 + (Class)retursClass;
17 @end
19 @implementation XCActivityLogSection
21 + (unsigned)serializationFormatVersion
24     return 0;
26 + (unsigned)sectionByDeserializingData {
27     unsigned version;
28     return self.serializationFormatVersion;
31 + (Class)retursClass {
32     Class version;
33     // FIXIT. (*version).isa does not work. Results in compiler error.
34     return version->isa;
37 @end