1 /* Make sure that @synchronized parses and a very basic test runs. */
2 /* { dg-options "-fobjc-exceptions -fgnu-runtime" } */
4 #include "../objc-obj-c++-shared/TestsuiteObject.h"
8 TestsuiteObject *a = [TestsuiteObject new];
9 TestsuiteObject *b = [TestsuiteObject new];
10 TestsuiteObject *c = [TestsuiteObject new];
12 /* This single-threaded test just checks that @synchronized() uses a
13 recursive mutex, and that the runtime at least doesn't crash
14 immediately upon finding it.