diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-05 18:15:17 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-05 18:15:17 +0000 |
commit | ca940bb630b20c6a8bd7eb895563ca97817c23e6 (patch) | |
tree | cae635371793f9951f6e57a9e5f1fb183a29008f | |
parent | 7d8f9b6133898fcd0c51729b98bc9841ad9b55fe (diff) |
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
-rw-r--r-- | test/FrontendObjC/2009-02-05-VolatileProp.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/FrontendObjC/2009-02-05-VolatileProp.m b/test/FrontendObjC/2009-02-05-VolatileProp.m new file mode 100644 index 0000000000..461f92b51d --- /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]); +} + |