diff options
| -rw-r--r-- | clang/test/CodeGenObjC/synchronized.m | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/synchronized.m b/clang/test/CodeGenObjC/synchronized.m new file mode 100644 index 00000000000..ee4b8cad634 --- /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; + } +} + |

