[cfe-commits] r59451 - /cfe/trunk/test/CodeGenObjC/synchronized.m

Fariborz Jahanian fjahanian at apple.com
Mon Nov 17 10:03:29 PST 2008


Author: fjahanian
Date: Mon Nov 17 12:03:28 2008
New Revision: 59451

URL: http://llvm.org/viewvc/llvm-project?rev=59451&view=rev
Log:
Test case for objective-c's @synchronized statement.

Added:
    cfe/trunk/test/CodeGenObjC/synchronized.m

Added: cfe/trunk/test/CodeGenObjC/synchronized.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenObjC/synchronized.m?rev=59451&view=auto

==============================================================================
--- cfe/trunk/test/CodeGenObjC/synchronized.m (added)
+++ cfe/trunk/test/CodeGenObjC/synchronized.m Mon Nov 17 12:03:28 2008
@@ -0,0 +1,11 @@
+// RUN: clang -emit-llvm -o %t %s
+
+#include <stdio.h>
+
+void foo(id a) {
+  @synchronized(a) {
+    printf("Swimming? No.");
+    return;
+  }
+}
+





More information about the cfe-commits mailing list