Skip to content

Commit 992e1c0

Browse files
authored
Merge pull request #10220 from rudkx/warn-long-compile
2 parents 3578e20 + a0ae313 commit 992e1c0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/Constraints/warn_long_compile.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// RUN: %target-typecheck-verify-swift -warn-long-expression-type-checking=1 -warn-long-function-bodies=1 %s
2-
func foo<T>(_ x: T) -> T { return x }
3-
func foo(_ x: Int) -> Int { return x }
2+
@_silgen_name("generic_foo")
3+
func foo<T>(_ x: T) -> T
4+
5+
@_silgen_name("foo_of_int")
6+
func foo(_ x: Int) -> Int
47

58
func test(m: Double) -> Int {
69
// expected-warning@-1 {{global function 'test(m:)' took}}

0 commit comments

Comments
 (0)