Files
swift-mirror/test/Serialization/xref.swift
2016-09-02 21:36:45 -07:00

22 lines
708 B
Swift

// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/struct_with_operators.swift
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/alias.swift -module-name has_alias
// RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/xref_distraction.swift
// RUN: %target-swift-frontend -emit-module -o %t -I %t %S/Inputs/has_xref.swift
// RUN: llvm-bcanalyzer %t/has_xref.swiftmodule | %FileCheck %s
// RUN: %target-swift-frontend -emit-silgen -I %t %s > /dev/null
// CHECK-NOT: UnknownCode
import xref_distraction
import has_xref
numeric(42)
conditional(true)
longInt(42)
numericArray([42])
func incr<T: ExtraIncrementable>(_ x: T) {}
incr(SpecialInt())