Files
swift-mirror/test/Serialization/xref.swift
Jordan Rose 2b0e969647 [serialization] Use lookupDirect to resolve cross-references to members.
...and add a test for this.

Also, fix a cursor invalidation bug for TypeAliasDecl deserialization.

Swift SVN r6079
2013-07-08 23:41:14 +00:00

14 lines
391 B
Swift

// RUN: rm -rf %t
// RUN: mkdir %t
// RUN: %swift -emit-module -o %t/alias.swiftmodule %S/Inputs/alias.swift
// RUN: %swift -emit-module -o %t/has_xref.swiftmodule %S/Inputs/has_xref.swift
// RUN: llvm-bcanalyzer %t/has_xref.swiftmodule | FileCheck %s
// RUN: %swift -emit-sil -I=%t %s > /dev/null
// CHECK-NOT: FALL_BACK_TO_TRANSLATION_UNIT
import has_xref
numeric(42)
conditional(true)