mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
...and add a test for this. Also, fix a cursor invalidation bug for TypeAliasDecl deserialization. Swift SVN r6079
14 lines
391 B
Swift
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)
|