Revision d9b2fe601b793741633d77606c4618e63612fbb2 authored by Chris Lattner on 10 January 2016, 04:17:56 UTC, committed by Chris Lattner on 10 January 2016, 04:17:56 UTC
1 parent 0fbbf59
playground.swift
// RUN: rm -rf %t
// RUN: %target-swift-frontend -use-jit -playground -parse-stdlib %s -emit-ir -disable-objc-attr-requires-foundation-module | FileCheck %s
// REQUIRES: OS=macosx
// REQUIRES: CPU=x86_64
// REQUIRES: objc_interop
import Swift
@objc class C { }
public func anchor() {}
anchor()
// CHECK-LABEL: define i32 @main
// CHECK: call void @runtime_registration
// CHECK: call void @_TF10playground6anchorFT_T_
// CHECK: ret void
// CHECK: }
// CHECK-LABEL: define private void @runtime_registration
// CHECK: call void @swift_instantiateObjCClass({{.*}} @_TMC10playground1C
Computing file changes ...