1/* Test if addition of 'volatile' to object causes bogus error in presence of try-catch. */
2/* { dg-options "-fobjc-exceptions" } */
3/* { dg-do compile } */
4
5extern void func( void * outData) ;
6struct Point {
7  short v;
8  short h;
9};
10
11
12void foo ()
13{
14 Point eventLocation;
15 @try {
16 } @catch (id iiii) {
17 }
18
19   func( &eventLocation );
20}
21