brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 146ad60 Raw
37 lines · plain
1// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm  %s -o - | FileCheck %s2 3@protocol P4@optional5@property int auto_opt_window;6@property int no_auto_opt_window;7@end8 9@interface I<P>10@property int auto_opt_window;11@end12 13@implementation I14@end15 16@protocol P117@property int auto_req_window;18@property int no_auto_req_window; // expected-note {{property declared here}}19@end20 21@interface I1<P1>22@property int auto_req_window;23@end24 25@implementation I1 // expected-warning {{auto property synthesis will not synthesize property declared in a protocol}}26@end27 28// CHECK: define internal i32 @"\01-[I auto_opt_window]"(29// CHECK: define internal void @"\01-[I setAuto_opt_window:]"(30// CHECK: define internal i32 @"\01-[I1 auto_req_window]"(31// CHECK: define internal void @"\01-[I1 setAuto_req_window:]"(32 33// CHECK-NOT: define internal i32 @"\01-[I1 no_auto_opt_window]"(34// CHECK-NOT: define internal void @"\01-[I1 setNo_auto_opt_window:]"(35// CHECK-NOT: define internal i32 @"\01-[I no_auto_req_window]"(36// CHECK-NOT: define internal void @"\01-[I setNo_auto_req_window:]"(37