blob: 8c3ebacc8411b8500852fccaed4864c97c9c3353 [file] [log] [blame]
// RUN: rm -rf %t
// RUN: mkdir -p %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