| 1 |
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s |
| 2 |
// 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 |
| 3 |
|
| 4 |
@interface TestClass |
| 5 |
@property (readonly) int myProperty; |
| 6 |
- (int)myProperty; |
| 7 |
- (double)myGetter; |
| 8 |
@end |
| 9 |
|
| 10 |
void FUNC (void) { |
| 11 |
TestClass *obj; |
| 12 |
(void)obj.myProperty; |
| 13 |
(void)obj.myGetter; |
| 14 |
} |
| 15 |
|
| 16 |
// CHECK: call i32 |
| 17 |
// CHECK: call double |