xref: /minix3/external/bsd/llvm/dist/clang/test/CodeGenObjC/objc2-no-write-barrier.m (revision f4a2713ac843a11c696ec80c0a5e3e5d80b4d338)
1*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
2*f4a2713aSLionel Sambuc// RUN: not grep 'objc_assign' %t
3*f4a2713aSLionel Sambuc// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -emit-llvm -o %t %s
4*f4a2713aSLionel Sambuc// RUN: not grep 'objc_assign' %t
5*f4a2713aSLionel Sambuc
6*f4a2713aSLionel Sambuctypedef struct {
7*f4a2713aSLionel Sambuc    int ival;
8*f4a2713aSLionel Sambuc    id submenu;
9*f4a2713aSLionel Sambuc} XCBinderContextMenuItem;
10*f4a2713aSLionel Sambuc
11*f4a2713aSLionel Sambucid actionMenuForDataNode(void) {
12*f4a2713aSLionel Sambuc    XCBinderContextMenuItem menusToCreate[]  = {
13*f4a2713aSLionel Sambuc        {1, 0}
14*f4a2713aSLionel Sambuc    };
15*f4a2713aSLionel Sambuc    return 0;
16*f4a2713aSLionel Sambuc}
17*f4a2713aSLionel Sambuc
18*f4a2713aSLionel SambucXCBinderContextMenuItem GmenusToCreate[]  = {
19*f4a2713aSLionel Sambuc        {1, 0}
20*f4a2713aSLionel Sambuc};
21