mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
32 lines
502 B
Swift
32 lines
502 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %s %t
|
|
|
|
// RUN: %target-swift-frontend -emit-ir -verify -I %t/Inputs %t/test.swift
|
|
|
|
// REQUIRES: objc_interop
|
|
|
|
//--- Inputs/header.h
|
|
|
|
@interface Interface
|
|
|
|
- (void)test __attribute__((objc_direct)) __attribute__((swift_attr("@_noObjCBridging")));
|
|
|
|
@end
|
|
|
|
|
|
//--- Inputs/module.modulemap
|
|
|
|
module ObjCModule {
|
|
header "header.h"
|
|
export *
|
|
}
|
|
|
|
//--- test.swift
|
|
|
|
import Foundation
|
|
import ObjCModule
|
|
|
|
@_noObjCBridging
|
|
func test(i: Interface) {
|
|
i.test()
|
|
} |