Test case for objective-c's @synchronized statement.

llvm-svn: 59451
diff --git a/clang/test/CodeGenObjC/synchronized.m b/clang/test/CodeGenObjC/synchronized.m
new file mode 100644
index 0000000..ee4b8ca
--- /dev/null
+++ b/clang/test/CodeGenObjC/synchronized.m
@@ -0,0 +1,11 @@
+// RUN: clang -emit-llvm -o %t %s
+
+#include <stdio.h>
+
+void foo(id a) {
+  @synchronized(a) {
+    printf("Swimming? No.");
+    return;
+  }
+}
+