Skip to content

Commit 95132fd

Browse files
authored
Merge pull request #26979 from theblixguy/chore/add-compiler-crasher-test
2 parents 6b9133b + 8c5730a commit 95132fd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// RUN: not --crash %target-swift-frontend -typecheck %s
2+
// REQUIRES: asserts
3+
4+
func foo(x: Int) {}
5+
func foo(line: String = #line) {}
6+
foo()

0 commit comments

Comments
 (0)