Files
swift-mirror/test/DebugInfo/StringInterpolation.swift
2019-05-01 15:18:15 -07:00

12 lines
291 B
Swift

// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t: T) {}
public func f() {
// CHECK: !DILocalVariable(name: "$interpolation",
// CHECK-SAME: flags: DIFlagArtificial)
let world = "World"
var s = "Hello \(world)!"
markUsed(s)
}
f()