Files
swift-mirror/test/embedded/embedded-swift.swift
Doug Gregor 5f8bf43fd3 Move Embedded Swift C++ interoperability test into test/embedded
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.
2026-07-08 07:01:23 -07:00

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>