llvm-project/clang/test/CodeGenObjC/synchronized.m

13 lines
203 B
Objective-C

// RUN: clang -emit-llvm -triple=i686-apple-darwin8 -o %t %s
// RUNX: clang -emit-llvm -o %t %s
#include <stdio.h>
void foo(id a) {
@synchronized(a) {
printf("Swimming? No.");
return;
}
}