Files
swift-mirror/test/SIL/Serialization/clang_conformances.swift
Michael Gottesman 34ec32bc14 [semantic-arc] Handle the rest of the unqualified mem opts in SILGen.
Keep in mind that these are approximations that will not impact correctness
since in all cases I ensured that the SIL will be the same after the
OwnershipModelEliminator has run. The cases that I was unsure of I commented
with SEMANTIC ARC TODO. Once we have the verifier any confusion that may have
occurred here will be dealt with.

rdar://28685236
2016-11-09 11:37:52 -08:00

15 lines
550 B
Swift

// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/clang_conformances.sil -module-name clang_conformances -import-objc-header %S/Inputs/clang_conformances_helper.h -assume-parsing-unqualified-ownership-sil
// RUN: %target-swift-frontend -emit-sil -o %t -I %t -primary-file %s -module-name main -O
// REQUIRES: objc_interop
// Don't crash when inlining a function that uses a conformance for a Clang
// decl that we haven't used in this file.
import clang_conformances
public func main() {
inlineMe()
}