testcase for rdar://6551276 and llvm-gcc r63873
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63874 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/FrontendObjC/2009-02-05-VolatileProp.m b/test/FrontendObjC/2009-02-05-VolatileProp.m
new file mode 100644
index 0000000..461f92b
--- /dev/null
+++ b/test/FrontendObjC/2009-02-05-VolatileProp.m
@@ -0,0 +1,11 @@
+/* RUN: %llvmgcc -w -x objective-c -c %s -o /dev/null -pedantic-errors
+ rdar://6551276 */
+
+void foo(const unsigned short *);
+void bar() {
+ unsigned short *s[3];
+ int i;
+ @try { } @catch (id anException) { }
+ foo(2+s[i]);
+}
+