mirror of
https://github.com/apple/swift.git
synced 2026-11-28 08:15:08 +01:00
Reran my last test with a newer Claude Code agent and it found a few more arm64 module using tests that needed updating. (The x86 failures were what prompted the changes, and then I asked Claude Code to find arm64 ones even though those tests were passing on my locally built arm64 modules.) Assisted-by: Claude Code rdar://180485531
21 lines
960 B
C++
21 lines
960 B
C++
// RUN: %empty-directory(%t)
|
|
// RUN: split-file %S/string-conversions.cpp %t
|
|
|
|
// RUN: %target-swift-frontend -enable-experimental-feature Embedded %t/print-string.swift -target %target-cpu-apple-macos15.0 -module-name Stringer -enable-experimental-cxx-interop -typecheck -verify -emit-clang-header-path %t/Stringer.h
|
|
|
|
// Verify the generated header uses embedded mangling ($e prefix, not $s).
|
|
// RUN: %FileCheck %s --check-prefix=CHECK-HEADER < %t/Stringer.h
|
|
|
|
// Verify the generated header compiles as valid C++.
|
|
// RUN: %target-interop-build-clangxx -target %target-cpu-apple-macos15.0 -std=gnu++20 -c %t/string-conversions.cpp -I %t -o %t/swift-stdlib-execution.o
|
|
|
|
// REQUIRES: OS=macosx
|
|
// REQUIRES: executable_test
|
|
// REQUIRES: embedded_stdlib
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
// CHECK-HEADER: __EmbeddedSwift__
|
|
// CHECK-HEADER: $eSS7cStringSSSPys4Int8VG_tcfC
|
|
// CHECK-HEADER-NOT: $sSS7cStringSSSPys4Int8VG_tcfC
|
|
// CHECK-HEADER-NOT: $sSS10FoundationE
|