bolt/deps/llvm-18.1.8/clang/test/CodeGenObjC/property-ref-cast-to-void.m

18 lines
546 B
Mathematica
Raw Normal View History

2025-02-14 19:21:04 +01:00
// 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