Skip to content

Commit 54dcd16

Browse files
committed
Merge pull request #876 from practicalswift/swiftc-28191-swift-typebase-getcanonicaltype
[swiftc] Add test case for crash triggered in swift::TypeBase::getCanonicalType()
2 parents dcc1638 + 53042ba commit 54dcd16

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// RUN: not --crash %target-swift-frontend %s -parse
2+
3+
// Distributed under the terms of the MIT license
4+
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
5+
// Test case found by fuzzing
6+
7+
protocol a:A.e
8+
protocol A{typealias e:a
9+
class A:e
10+
func b:A

validation-test/compiler_crashers/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ SOFTWARE.
2424
Repository: https://github.com/practicalswift/swift-compiler-crashes.git
2525
Web URL: https://github.com/practicalswift/swift-compiler-crashes
2626

27-
Tests updated as of revision 75c8eac27530ed891be4104485129820572c3fd1
27+
Tests updated as of revision e823a5d05b386975c98b5cdd7045e4d8474bff60

0 commit comments

Comments
 (0)