Files
swift-mirror/test/Serialization/generic_witness.swift
Jordan Rose d11585f810 [serialization] Include generic protocol witness substitutions.
This finishes up Joe's changes in r6397.

Swift SVN r6558
2013-07-24 21:15:42 +00:00

23 lines
657 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %swift -emit-module -o %t/has_generic_witness.swiftmodule %S/Inputs/has_generic_witness.swift
// RUN: llvm-bcanalyzer %t/has_generic_witness.swiftmodule | FileCheck %s
// RUN: %swift -emit-llvm -I=%t %s -o /dev/null
// We have to perform IRGen to actually check that the generic substitutions
// are being used.
// CHECK-NOT: FALL_BACK_TO_TRANSLATION_UNIT
// CHECK-NOT: UnknownCode
import has_generic_witness
var cfoo : Fooable = FooClass()
var sfoo : Fooable = FooStruct()
var cbar : Barrable = BarClass()
var sbar : Barrable = BarStruct()
var cbas : Bassable = BasClass()
var sbas : Bassable = BasStruct()