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