Skip to content

Commit 318f90c

Browse files
committed
Add CHECK & CHECK-LABELs
1 parent a861f3e commit 318f90c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/SILGen/default_arguments.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ class Foo {
139139
return x
140140
}
141141

142+
// CHECK-LABEL: sil private @globalinit_33_E52D764B1F2009F2390B2B8DF62DAEB8_func0
143+
// CHECK: string_literal utf16 "Foo"
142144
static let x = Foo(int:0)
143145

144146
}
@@ -148,6 +150,9 @@ testMagicLiterals()
148150
closure { testMagicLiterals() }
149151
autoclosure(testMagicLiterals())
150152

153+
// CHECK: string_literal utf16 "default_arguments"
154+
let y : String = #function
155+
151156
// CHECK-LABEL: sil hidden @_T017default_arguments16testSelectorCallySi_Si17withMagicLiteralstF
152157
// CHECK: string_literal utf16 "testSelectorCall(_:withMagicLiterals:)"
153158
func testSelectorCall(_ x: Int, withMagicLiterals y: Int) {

0 commit comments

Comments
 (0)