24 lines · plain
1// RUN: %clang_cc1 -triple x86_64-unknown-freebsd -emit-llvm -fobjc-runtime=gnustep-2.0 -o - %s | FileCheck %s -check-prefix=CHECK-NEW2// RUN: %clang_cc1 -triple x86_64-unknown-freebsd -emit-llvm -fobjc-runtime=gnustep-1.8 -o - %s | FileCheck %s -check-prefix=CHECK-OLD3 4// Clang 9 or 10 changed the handling of method lists so that methods provided5// from synthesised properties showed up in the method list, where previously6// CGObjCGNU had to collect them and merge them. One of the places where this7// merging happened was missed in the move and so we ended up emitting two8// copies of method metadata for declared properties.9 10// This class has only instance properties and only one pair of synthesized11// methods from the property and so we should synthesize only one method list,12// with precisely two methods on it.13@interface X14@property (retain) id iProp;15@end16 17@implementation X18@synthesize iProp;19@end20 21// Check that the method list has precisely 2 methods.22// CHECK-NEW: @.objc_method_list = internal global { ptr, i32, i64, [2 x23// CHECK-OLD: @.objc_method_list = internal global { ptr, i32, [2 x24