Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / CodeGenObjC / synthesize_ivar.m
blob0ea6671e161c3470ef4f964c77f713eb36e562b3
1 // RUN: %clang_cc1 -emit-llvm -o %t %s
3 // PR13820
4 // REQUIRES: LP64
6 @interface I
7 @property int IP;
8 @end
10 @implementation I
11 @synthesize IP;
12 - (int) Meth {
13    return IP;
15 @end
17 // Test for synthesis of ivar for a property
18 // declared in continuation class.
19 @interface OrganizerViolatorView
20 @end
22 @interface OrganizerViolatorView()
23 @property (retain) id bindingInfo;
24 @end
26 @implementation OrganizerViolatorView
27 @synthesize bindingInfo;
28 @end
30 // [irgen] crash in synthesized property construction
32 @interface I0 @end
33 @protocol P0 @end
34 @interface I1 {
35   I0<P0> *iv0;
37 @property (assign, readwrite) id p0;
38 @end
39 @implementation I1
40 @synthesize p0 = iv0;
41 @end