YouCompleteMe/cpp/llvm/tools/clang/test/CodeGenObjC/objc2-no-write-barrier.m
Strahinja Val Markovic 1f51a89d39 Adding more llvm/clang files
These were ignored by git accidentally. We want ALL OF THEM since they all came
in the llvm/clang source distribution.
2012-07-05 17:55:45 -07:00

21 lines
552 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: grep 'objc_assign' %t | count 0
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-fragile-abi -fobjc-gc -emit-llvm -o %t %s
// RUN: grep 'objc_assign' %t | count 0
typedef struct {
int ival;
id submenu;
} XCBinderContextMenuItem;
id actionMenuForDataNode(void) {
XCBinderContextMenuItem menusToCreate[] = {
{1, 0}
};
return 0;
}
XCBinderContextMenuItem GmenusToCreate[] = {
{1, 0}
};