Files
swift-mirror/test/embedded/stdlib-strings-append.swift
2024-05-08 11:11:37 -07:00

18 lines
514 B
Swift

// RUN: %target-run-simple-swift(-enable-experimental-feature Embedded -parse-as-library -runtime-compatibility-version none -wmo) | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: OS=macosx || OS=linux-gnu
@main
struct Main {
static func main() {
var str = "hello "
for _ in 0 ..< 4 { str = str + str }
print(str)
}
}
// CHECK: hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello hello