llvm-for-llvmta/tools/clang/test/CodeGenObjC/objc2-no-write-barrier.m

21 lines
572 B
Mathematica
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
// RUN: not grep 'objc_assign' %t
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
// RUN: not grep 'objc_assign' %t
typedef struct {
int ival;
id submenu;
} XCBinderContextMenuItem;
id actionMenuForDataNode(void) {
XCBinderContextMenuItem menusToCreate[] = {
{1, 0}
};
return 0;
}
XCBinderContextMenuItem GmenusToCreate[] = {
{1, 0}
};