Add more reference-binding examples from the C++0x working paper, all of which seem...
[clang.git] / test / CodeGenObjC / property-ref-cast-to-void.m
bloba365aa56e84df47f189cd4805098e33778a0bcb6
1 // RUN: %clang_cc1 -triple x86_64-apple-darwin9 -emit-llvm -o - %s | FileCheck %s
2 // RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -emit-llvm -o - %s | FileCheck %s
4 // rdar: // 8399655
5 @interface TestClass
6 @property (readonly) int myProperty;
7 - (int)myProperty;
8 - (double)myGetter;
9 @end
11 void FUNC () {
12     TestClass *obj;
13     (void)obj.myProperty; 
14     (void)obj.myGetter; 
17 // CHECK: call i32 bitcast
18 // CHECK: call double bitcast