summaryrefslogtreecommitdiffstats
path: root/test/CodeGenObjC/objc2-assign-global.m
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenObjC/objc2-assign-global.m')
-rw-r--r--test/CodeGenObjC/objc2-assign-global.m8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGenObjC/objc2-assign-global.m b/test/CodeGenObjC/objc2-assign-global.m
new file mode 100644
index 0000000..ae40761
--- /dev/null
+++ b/test/CodeGenObjC/objc2-assign-global.m
@@ -0,0 +1,8 @@
+// RUN: clang-cc -fnext-runtime -fobjc-gc -emit-llvm -o %t %s &&
+// RUN: grep -F '@objc_assign_global' %t | count 2 &&
+// RUN: true
+id a;
+int main() {
+ a = 0;
+}
+
OpenPOWER on IntegriCloud