Files
clang-p2996/clang/test/CodeGenObjC/arc-no-runtime.m
John McCall 24fc0decfe Change the driver's logic about Objective-C runtimes: abstract out a
structure to hold inferred information, then propagate each invididual
bit down to -cc1.  Separate the bits of "supports weak" and "has a native
ARC runtime";  make the latter a CodeGenOption.

The tool chain is still driving this decision, because it's the place that
has the required deployment target information on Darwin, but at least it's
better-factored now.

llvm-svn: 134453
2011-07-06 00:26:06 +00:00

10 lines
260 B
Objective-C

// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -fobjc-nonfragile-abi -emit-llvm %s -o - | FileCheck %s
// rdar://problem/9224855
void test0() {
id x = 0;
// CHECK: call void @objc_release(
}
// CHECK: declare extern_weak void @objc_release(