1 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-freebsd -S -emit-llvm -fobjc-runtime=gnustep-2.0 -o - %s | FileCheck %s -check-prefix=CHECK-NEW
2 // RUN: %clang_cc1 -no-opaque-pointers -triple x86_64-unknown-freebsd -S -emit-llvm -fobjc-runtime=gnustep-1.8 -o - %s | FileCheck %s -check-prefix=CHECK-OLD
4 // Clang 9 or 10 changed the handling of method lists so that methods provided
5 // from synthesised properties showed up in the method list, where previously
6 // CGObjCGNU had to collect them and merge them. One of the places where this
7 // merging happened was missed in the move and so we ended up emitting two
8 // copies of method metadata for declared properties.
10 // This class has only instance properties and only one pair of synthesized
11 // methods from the property and so we should synthesize only one method list,
12 // with precisely two methods on it.
14 @property (retain) id iProp;
21 // Check that the method list has precisely 2 methods.
22 // CHECK-NEW: @.objc_method_list = internal global { i8*, i32, i64, [2 x
23 // CHECK-OLD: @.objc_method_list = internal global { i8*, i32, [2 x