Files
swift-mirror/test/Serialization/class-roundtrip-module.swift
Jordan Rose 439ba3e624 Accept swiftmodule files on the command line as partial AST inputs.
Each loaded file gets added to the main module, rather than being a standalone
separate module. In theory, this will be used to assemble several partial
ASTs into a complete module. In practice, there's still a ways to go...but
this can already round-trip a single module file.

This also factors out the FileUnit-creating part of SerializedModuleLoader,
which should help clients like SourceKit that don't need to search for a
swiftmodule file associated with a particular import.

Swift SVN r10952
2013-12-07 00:14:01 +00:00

8 lines
443 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %swift -emit-module -module-name def_class -o %t/stage1.swiftmodule %S/Inputs/def_class.swift
// RUN: %swift -emit-module -parse-as-library -o %t/def_class.swiftmodule %t/stage1.swiftmodule
// RUN: %swift -emit-silgen -enable-sil-linking -I=%t %S/class.swift | FileCheck %s -check-prefix=SIL
// SIL-LABEL: sil deserialized [transparent] @_TSsoi1pFT3lhsSi3rhsSi_Si : $@thin (Int64, Int64) -> Int64 {