mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
22 lines
718 B
Swift
22 lines
718 B
Swift
// RUN: %empty-directory(%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)
|
|
conditional2(true)
|
|
longInt(42)
|
|
numericArray([42])
|
|
|
|
func incr<T: ExtraIncrementable>(_ x: T) {}
|
|
incr(SpecialInt())
|