1 /* Test for proper handling of volatile parameters in ObjC methods. */
2 /* Contributed by Ziemowit Laski <zlaski@apple.com> */
3 /* { dg-do compile } */
4 /* { dg-options "-O2" } */
5 /* { dg-additional-options "-Wno-objc-root-class" } */
8 -(void) test2: (volatile int) a;
12 -(void) test2: (volatile int) a
14 /* The following assignment should NOT be optimized away. */
19 /* { dg-final { scan-assembler "li r\[0-9\]+,1" { target powerpc*-*-darwin* } } } */