1 /* Test for graceful compilation of @synchronized statements. */
3 /* { dg-do compile } */
4 /* { dg-options "-fobjc-exceptions" } */
6 #include "../objc-obj-c++-shared/Object1.h"
8 @interface Derived: Object
12 @implementation Derived
17 static Derived* rewriteDict(void) {
18 static Derived *sDict = 0;
20 @synchronized ([Derived class]) {
22 sDict = [Derived new];