Files
swift-mirror/test/ModuleInterface/multiline-availability-message.swift
Harlan Haskins d3b8ce7ae2 [test] Update ParseableInterface to ModuleInterface
Also remove uses of -emit-parseable-module-interface from tests
2019-09-13 14:55:48 -07:00

21 lines
949 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -typecheck -module-name Test -emit-module-interface-path %t/Test.swiftinterface %s
// RUN: %FileCheck %s < %t/Test.swiftinterface
// RUN: %target-swift-frontend -compile-module-from-interface %t/Test.swiftinterface -o %t/Test.swiftmodule
// RUN: %target-swift-frontend -emit-module -o /dev/null -merge-modules -emit-module-interface-path - %t/Test.swiftmodule -module-name Test | %FileCheck %s
// CHECK: @available(*, unavailable, message: "First line.\nAnother line!")
// CHECK: public func catastrophicFunction()
@available(*,
unavailable,
message: """
First line.
Another line!
""")
public func catastrophicFunction() {}
// CHECK: @available(*, unavailable, message: "\n First line.\n Another line!")
// CHECK: public func catastrophicFunction2()
@available(*, unavailable, message: "\n First line.\n Another line!")
public func catastrophicFunction2() {}