Files
swift-mirror/test/ModuleInterface/smoke-test.swift
Jordan Rose ad4d72568a [AST] Print "__owned" and "__shared" with leading underscores
The type printer was being optimistic about these, but that's a
problem for testing textual interfaces right now.
2018-08-20 18:30:00 -07:00

11 lines
528 B
Swift

// RUN: %target-swift-frontend -emit-interface-path - -emit-module -o /dev/null %s | %FileCheck %s
// RUN: %target-swift-frontend -emit-interface-path - -emit-module -o /dev/null %s %S/Inputs/other.swift | %FileCheck -check-prefix CHECK -check-prefix CHECK-MULTI-FILE %s
// CHECK: public func verySimpleFunction(){{$}}
public func verySimpleFunction() {}
// CHECK: public func ownership(_ x: __shared AnyObject){{$}}
public func ownership(_ x: __shared AnyObject) {}
// CHECK-MULTI-FILE: public func otherFileFunction(){{$}}