Fixes a regression in generating objc's GC API
in assiging to c pointer types with a GC'able
attribute.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81244 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenObjC/objc2-strong-cast-4.m b/test/CodeGenObjC/objc2-strong-cast-4.m
new file mode 100644
index 0000000..e351f48
--- /dev/null
+++ b/test/CodeGenObjC/objc2-strong-cast-4.m
@@ -0,0 +1,23 @@
+// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o %t %s &&
+// RUN: grep objc_assign_strongCast %t | count 3 &&
+// RUN: true
+
+struct Slice {
+    void *__strong * items;
+};
+
+typedef struct Slice Slice;
+
+@interface ISlice {
+@public
+    void *__strong * items;
+}
+@end
+
+void foo () {
+    Slice *slice;
+    slice->items = 0;
+
+    ISlice *islice;
+    islice->items = 0;
+}