blob: fc1370a737c709d4c08aa910e1cc3f66a0fad05a [file] [log] [blame]
/* APPLE LOCAL file radar 5982990 */
/* This tests that local variables declared in @synchronized block
have are make volatile. Test should compile with no warning or
error.
*/
/* { dg-do compile { target powerpc*-*-darwin* i?86*-*-darwin* } } */
/* { dg-options "-fobjc-exceptions -Os -Wextra -Werror" } */
/* { dg-require-effective-target ilp32 } */
struct MyPoint { int x; };
__attribute__((objc_root_class)) @interface MyObject {}
+(void) doNothingWithPoint:(struct MyPoint)aPoint;
@end
int main()
{
id pool = 0;
@synchronized(pool)
{
struct MyPoint thePoint;
[MyObject doNothingWithPoint:thePoint];
}
return 0;
}