summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaObjC/arc-property-decl-attrs.m
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/SemaObjC/arc-property-decl-attrs.m')
-rw-r--r--clang/test/SemaObjC/arc-property-decl-attrs.m4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/SemaObjC/arc-property-decl-attrs.m b/clang/test/SemaObjC/arc-property-decl-attrs.m
index 6638054bef8..833998d4250 100644
--- a/clang/test/SemaObjC/arc-property-decl-attrs.m
+++ b/clang/test/SemaObjC/arc-property-decl-attrs.m
@@ -287,3 +287,7 @@ __attribute__((objc_root_class))
@synthesize collision = _collision; // expected-note {{property synthesized here}}
@end
+
+// This used to crash because we'd temporarly store the weak attribute on the
+// declaration specifier, then deallocate it when clearing the declarator.
+id i1, __weak i2, i3;
OpenPOWER on IntegriCloud