mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
`foundation-and-std-module.swift` has started timing out in some CI jobs. This change makes the test run faster to stay within the 600 sec timeout. rdar://134328721
27 lines
773 B
Swift
27 lines
773 B
Swift
// RUN: %empty-directory(%t)
|
|
// RUN: %target-swift-frontend %s -c -enable-experimental-cxx-interop -Xcc -std=c++17 -Xcc -fmodules-cache-path=%t
|
|
// RUN: %target-swift-frontend %s -c -enable-experimental-cxx-interop -Xcc -std=c++20 -Xcc -fmodules-cache-path=%t
|
|
|
|
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: %target-swift-frontend %s -c -enable-experimental-cxx-interop -Xcc -std=c++17 -Xcc -fmodules-cache-path=%t -DADD_CXXSTDLIB
|
|
// RUN: %target-swift-frontend %s -c -enable-experimental-cxx-interop -Xcc -std=c++20 -Xcc -fmodules-cache-path=%t -DADD_CXXSTDLIB
|
|
|
|
// RUN: ls -R %/t | %FileCheck %s
|
|
|
|
#if canImport(Foundation)
|
|
import Foundation
|
|
#endif
|
|
|
|
#if ADD_CXXSTDLIB
|
|
import CxxStdlib
|
|
#endif
|
|
|
|
func test() {
|
|
#if ADD_CXXSTDLIB
|
|
let _ = std.string()
|
|
#endif
|
|
}
|
|
|
|
// CHECK: std-{{.*}}.pcm
|