summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenObjC/synchronized.m
blob: 0222846ccd710b58544169bdaff3a784a028ee53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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;
  }
}

OpenPOWER on IntegriCloud