Files
swift-mirror/test/PrintAsObjC/never.swift
Saleem Abdulrasool b67d5f0cf7 test: convert rm -rf && mkdir -p into %empty-directory
This converts the instances of the pattern for which we have a proper
substitution in lit.  This will make it easier to replace it
appropriately with Windows equivalents.
2018-03-06 14:30:54 -08:00

16 lines
674 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-module -o %t %s -module-name never -disable-objc-attr-requires-foundation-module
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -parse-as-library %t/never.swiftmodule -typecheck -emit-objc-header-path %t/never.h -disable-objc-attr-requires-foundation-module
// RUN: %FileCheck %s < %t/never.h
// RUN: %check-in-clang %t/never.h
// REQUIRES: objc_interop
@objc public class NeverClass {
@objc func doesNotReturn() -> Never { while true {} }
}
// CHECK-LABEL: @interface NeverClass
// CHECK: - (void)doesNotReturn SWIFT_NORETURN;
// CHECK: @end