mirror of
https://github.com/apple/swift.git
synced 2026-10-06 12:37:28 +02:00
test/embedded sets up some configuration needed for embedded testing that we don't want globally, so move this C++ interop with Embedded Swift test over to test/embedded. This does end up promoting some lit substitutions for C++ interop into the main "test" directory.
14 lines
458 B
Swift
14 lines
458 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -module-name Core -target %target-cpu-apple-macos15.0 -enable-experimental-feature Embedded -clang-header-expose-decls=all-public -typecheck -verify -emit-clang-header-path %t/core.h
|
|
// RUN: %FileCheck %s < %t/core.h
|
|
|
|
// REQUIRES: OS=macosx
|
|
// REQUIRES: embedded_stdlib
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
public func id(_ x: Int) -> Int {
|
|
return x
|
|
}
|
|
|
|
// CHECK-NOT: TypeMetadataTrait<bool>
|