testcase for rdar://6551276 and llvm-gcc r63873
authorChris Lattner <sabre@nondot.org>
Thu, 5 Feb 2009 18:15:17 +0000 (18:15 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 5 Feb 2009 18:15:17 +0000 (18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63874 91177308-0d34-0410-b5e6-96231b3b80d8

test/FrontendObjC/2009-02-05-VolatileProp.m [new file with mode: 0644]

diff --git a/test/FrontendObjC/2009-02-05-VolatileProp.m b/test/FrontendObjC/2009-02-05-VolatileProp.m
new file mode 100644 (file)
index 0000000..461f92b
--- /dev/null
@@ -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]);
+}
+