Skip to content

Commit ffd92f9

Browse files
committed
Add test case for <rdar://problem/63191951>
1 parent 88d8d9f commit ffd92f9

File tree

4 files changed

+15
-10
lines changed

4 files changed

+15
-10
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
public struct HTTPMethod {
2+
public let rawValue: String
3+
4+
public init(rawValue: String) {
5+
self.rawValue = rawValue
6+
}
7+
}

test/DebugInfo/curry_thunk.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// RUN: %target-swift-frontend -primary-file %s %S/Inputs/curry_thunk_other.swift -emit-ir -g -o - | %FileCheck %s
2+
3+
public func testCurryThunk() -> [HTTPMethod] {
4+
return ["asdf"].map(HTTPMethod.init)
5+
}
6+
7+
// CHECK: [[FILE:![0-9]+]] = !DIFile(filename: "{{.*}}/curry_thunk.swift", directory: "{{.*}}")
8+
// CHECK: {{![0-9]+}} = !DILocalVariable(name: "rawValue", arg: 1, scope: {{![0-9]+}}, file: {{![0-9]+}}, type: {{![0-9]+}}, flags: DIFlagArtificial)

test/SILGen/Inputs/partial_apply_debuginfo_other.swift

Lines changed: 0 additions & 3 deletions
This file was deleted.

test/SILGen/partial_apply_debuginfo.swift

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)