* tree-loop-distribution.c (struct partition): New field recording
[official-gcc.git] / gcc / testsuite / objc.dg / try-catch-9.m
blob454e841b301d0a53e2de056cb977dd95b6133b17
1 /* Check that taking the address of a local variable marked 'volatile'
2    by the compiler does not generate untoward errors.  */
3 /* Developed by Ziemowit Laski <zlaski@apple.com>.  */
5 /* { dg-options "-fobjc-exceptions" } */
6 /* { dg-do compile } */
8 void foo (int *arg1, int *arg2)
10   *arg1 = *arg2;
13 void bar (int arg) {
14   int rcvr;
16   @try {
17     rcvr = arg;
18   }
19   @finally {
20     int *rcvr0 = &rcvr;
21     foo (rcvr0, &arg);
22   }