Files
swift-mirror/test/SIL/Serialization/clang_conformances.swift
Dmitri Gribenko 486cab447d tests: replace 'rm -rf %t && mkdir -p %t' with '%empty-directory(%t)'
These changes were made using a script.
2017-06-04 11:08:39 -07:00

15 lines
546 B
Swift

// RUN: %empty-directory(%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()
}