Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[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)
  • Loading branch information
Michael137 committed Nov 5, 2025
commit 433cd5045ba1f9d9113fd5cb0cfffed118038a1b
34 changes: 34 additions & 0 deletions clang/test/DebugInfo/ObjC/property-explicit-accessors.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s

// CHECK: !DIObjCProperty(name: "baseInt"
// CHECK-SAME: setter: "mySetBaseInt:"
// CHECK-SAME: getter: "myGetBaseInt"
// CHECK-SAME: attributes: 2446
// CHECK-SAME: type: ![[P1_TYPE:[0-9]+]]
//
// CHECK: ![[P1_TYPE]] = !DIBasicType(name: "int"

@interface BaseClass2
{
int _baseInt;
}
- (int) myGetBaseInt;
- (void) mySetBaseInt: (int) in_int;
@property(getter=myGetBaseInt,setter=mySetBaseInt:) int baseInt;
@end

@implementation BaseClass2

- (int) myGetBaseInt
{
return _baseInt;
}

- (void) mySetBaseInt: (int) in_int
{
_baseInt = 2 * in_int;
}
@end


void foo(BaseClass2 *ptr) {}
33 changes: 0 additions & 33 deletions clang/test/DebugInfo/ObjC/property5.m

This file was deleted.