summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/objc2-no-write-barrier.m
blob: 16593f128d785ffdc68a96493368438dd128a2ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// 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}
};