Fixed bugzilla bug# 3095 related to code gen. for @synchronized.
llvm-svn: 59838
diff --git a/clang/test/CodeGenObjC/synchronized.m b/clang/test/CodeGenObjC/synchronized.m
index 0222846..c74a83e 100644
--- a/clang/test/CodeGenObjC/synchronized.m
+++ b/clang/test/CodeGenObjC/synchronized.m
@@ -3,6 +3,24 @@
#include <stdio.h>
+@interface MyClass
+{
+}
+- (void)method;
+@end
+
+@implementation MyClass
+
+- (void)method
+{
+ @synchronized(self)
+ {
+ NSLog(@"sync");
+ }
+}
+
+@end
+
void foo(id a) {
@synchronized(a) {
printf("Swimming? No.");
@@ -10,3 +28,5 @@
}
}
+
+