summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/objc2-no-write-barrier.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/objc2-no-write-barrier.m')
-rw-r--r--test/CodeGenObjC/objc2-no-write-barrier.m18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/CodeGenObjC/objc2-no-write-barrier.m b/test/CodeGenObjC/objc2-no-write-barrier.m
new file mode 100644
index 0000000..2c53509
--- /dev/null
+++ b/test/CodeGenObjC/objc2-no-write-barrier.m
@@ -0,0 +1,18 @@
+// RUN: clang-cc -triple x86_64-apple-darwin9 -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}
+};
OpenPOWER on IntegriCloud