summaryrefslogtreecommitdiff
path: root/test/CodeGenObjC/arc-no-runtime.m
blob: 31f0ed8714cef9f75687fcf63639254663646a8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -emit-llvm %s -o - | FileCheck %s

// rdar://problem/9224855
id make(void) __attribute__((ns_returns_retained));
void test0() {
  make();
  id x = 0;
  // CHECK: call void @llvm.objc.release(
  // CHECK: call void @llvm.objc.storeStrong(
}

// CHECK: declare extern_weak void @llvm.objc.release(
// CHECK: declare extern_weak void @llvm.objc.storeStrong(