Skip to content

Commit 433cd50

Browse files
committed
[clang][DebugInfo][test] Make Objective-C property5.m test check LLVM IR
New name makes it easer to find and checking IR is less likely to hide bugs (and is more consistent with the other Clang debug-info tests). (cherry picked from commit d0a7411)
1 parent 659aaff commit 433cd50

File tree

2 files changed

+34
-33
lines changed

2 files changed

+34
-33
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
2+
3+
// CHECK: !DIObjCProperty(name: "baseInt"
4+
// CHECK-SAME: setter: "mySetBaseInt:"
5+
// CHECK-SAME: getter: "myGetBaseInt"
6+
// CHECK-SAME: attributes: 2446
7+
// CHECK-SAME: type: ![[P1_TYPE:[0-9]+]]
8+
//
9+
// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"
10+
11+
@interface BaseClass2
12+
{
13+
int _baseInt;
14+
}
15+
- (int) myGetBaseInt;
16+
- (void) mySetBaseInt: (int) in_int;
17+
@property(getter=myGetBaseInt,setter=mySetBaseInt:) int baseInt;
18+
@end
19+
20+
@implementation BaseClass2
21+
22+
- (int) myGetBaseInt
23+
{
24+
return _baseInt;
25+
}
26+
27+
- (void) mySetBaseInt: (int) in_int
28+
{
29+
_baseInt = 2 * in_int;
30+
}
31+
@end
32+
33+
34+
void foo(BaseClass2 *ptr) {}

clang/test/DebugInfo/ObjC/property5.m

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)