Skip to content

Commit 8f947f5

Browse files
committed
[clang][DebugInfo][test] Convert Objective-C property test to check LLVM IR (llvm#165286)
There's a couple of tests like this. This patch series renames these to something more descriptive and adjusts the tests to check IR. Currently the tests check raw assembly output (not even dwarfdump). Which most likely hid some bugs around property debug-info. (cherry picked from commit cc868f6)
1 parent 4e5e6c7 commit 8f947f5

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Checks basic debug-info generation for property. Makes sure we
2+
// create a DIObjCProperty for the synthesized property.
3+
4+
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
5+
6+
// CHECK: !DIObjCProperty(name: "p1"
7+
// CHECK-SAME: attributes: 2316
8+
// CHECK-SAME: type: ![[P1_TYPE:[0-9]+]]
9+
//
10+
// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"
11+
12+
@interface I1 {
13+
int p1;
14+
}
15+
@property int p1;
16+
@end
17+
18+
@implementation I1
19+
@synthesize p1;
20+
@end

0 commit comments

Comments
 (0)