aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGenObjC/property-ref-cast-to-void.m
blob: e379d8625d6f4c7a2d4a3d60cf7054f40d1b8803 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-enable-noundef-analysis -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s

@interface TestClass
@property (readonly) int myProperty;
- (int)myProperty;
- (double)myGetter;
@end

void FUNC (void) {
    TestClass *obj;
    (void)obj.myProperty; 
    (void)obj.myGetter; 
}

// CHECK: call i32
// CHECK: call double