Skip to content

Commit 4ad5ed4

Browse files
[crashers] License: Apache License v2.0 with Runtime Library Exception
1 parent cf4498e commit 4ad5ed4

File tree

5,057 files changed

+35417
-24646
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,057 files changed

+35417
-24646
lines changed

validation-test/compiler_crashers/01766-swift-typechecker-validatedecl.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
protocol a {
810
protocol A {
911
}
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

7-
extension a{protocol i{func>}}func j>f
8+
// RUN: not --crash %target-swift-frontend %s -parse
9+
extension a{protocol i{func>}}func j>f
Original file line numberDiff line numberDiff line change
@@ -1,9 +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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// ASAN Output: stack-overflow on address 0x7fffe2a98fd8 (pc 0x000001e12adb bp 0x7fffe2a992d0 sp 0x7fffe2a98f60 T0)
8-
910
class A:A.b{let b=Void{
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// RUN: not --crash %target-swift-frontend %s -parse
29
// REQUIRES: asserts
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
protocol c:A
911
protocol A:d
1012
protocol d:d
Original file line numberDiff line numberDiff line change
@@ -1,8 +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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// Crash type: memory error ("Invalid read of size 4")
810
var a{class d{var b=B{}let c=(x:d<T{{}}class B<T where h=d>:a
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// ASAN Output: stack-overflow on address 0x7ffe8def3f70 (pc 0x000001cf1268 bp 0x7ffe8def48f0 sp 0x7ffe8def3f00 T0)
8-
910
func b<T {
1011
class A : A.e {
1112
func e: T.e

validation-test/compiler_crashers/24394-swift-typevariabletype-implementation-getrepresentative.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// Crash type: memory error ("Invalid read of size 8")
810
[Void{}}struct A
911
protocol A{associatedtype b:A func b
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 01766-swift-typechecker-validatedecl.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
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-
710
protocol e:A{protocol e:A class A}protocol A{enum A}protocol B:e
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
// RUN: not --crash %target-swift-frontend %s -parse
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
27

8+
// RUN: not --crash %target-swift-frontend %s -parse
39
// This test fails in the AST verifier, which can be turned off.
410
// REQUIRES: swift_ast_verifier
5-
6-
// Distributed under the terms of the MIT license
7-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
8-
// Test case found by fuzzing
9-
1011
class a<T where g:d{class A{class A<T>:A{init(){T{

validation-test/compiler_crashers/26832-swift-typechecker-conformstoprotocol.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
func a<T{
810
enum S<d{
911
protocol a{
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 26832-swift-typechecker-conformstoprotocol.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
if{enum S<T,g{protocol a{func f:B<T>class B<a
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
struct A{class d:a{protocol a{func<}}let a=S<
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
struct B<T{protocol A{
810
class B<T
911
associatedtype e:B<T>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 26832-swift-typechecker-conformstoprotocol.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
class C struct B<B{struct B<T:C{protocol d{let:B<T>{}struct B<b
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 26832-swift-typechecker-conformstoprotocol.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
struct B<T{
911
class B<I:B{protocol C{struct B<T
1012
var:B<T>

validation-test/compiler_crashers/27636-swift-typechecker-resolvetypeincontext.swift

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// ASAN Output: stack-overflow on address 0x7ffdcd2b1fd0 (pc 0x0000008ecf9e bp 0x7ffdcd2b2810 sp 0x7ffdcd2b1fc0 T0)
8-
910
enum A
1011
protocol A{
1112
associatedtype f:a

validation-test/compiler_crashers/27832-swift-typechecker-resolvetypeincontext.swift

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// ASAN Output: stack-overflow on address 0x7ffd2c334fb0 (pc 0x0000008ecf9e bp 0x7ffd2c3357f0 sp 0x7ffd2c334fa0 T0)
8-
910
enum A
1011
protocol A{
1112
associatedtype f:a
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// ASAN Output: stack-overflow on address 0x7ffdad0b1cd0 (pc 0x000001cf1268 bp 0x7ffdad0b2650 sp 0x7ffdad0b1c60 T0)
8-
910
func b<T {
1011
class A : A.e {
1112
func e: T.e

validation-test/compiler_crashers/27984-llvm-densemapbase-llvm-densemap-swift-declname.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 26832-swift-typechecker-conformstoprotocol.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
class B<T{enum S<h{protocol A{{
911
}
1012
func g:A
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 26832-swift-typechecker-conformstoprotocol.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
struct S<T{protocol b{func f:B:class B<c:B<T>
Original file line numberDiff line numberDiff line change
@@ -1,8 +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
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
67

8+
// RUN: not --crash %target-swift-frontend %s -parse
79
// Crash type: memory error ("Invalid read of size 2")
810
class A{func b->Self{{{}}class B<n{let a=self
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// RUN: not --crash %target-swift-frontend %s -parse
29
// REQUIRES: asserts
3-
4-
// Distributed under the terms of the MIT license
5-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
6-
// Test case found by fuzzing
7-
810
class A:A{init()

validation-test/compiler_crashers/28190-swift-conformancelookuptable-expandimpliedconformances.swift

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
// This source file is part of the Swift.org open source project
2+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
3+
// Licensed under Apache License v2.0 with Runtime Library Exception
4+
//
5+
// See http://swift.org/LICENSE.txt for license information
6+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
7+
18
// DUPLICATE-OF: 10659-swift-printingdiagnosticconsumer-handlediagnostic.timeout.swift
29
// RUN: not --crash %target-swift-frontend %s -parse
310
// REQUIRES: asserts
4-
5-
// Distributed under the terms of the MIT license
6-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
7-
// Test case found by fuzzing
8-
911
protocol A:A
1012
protocol a:A
1113
struct c:a{

0 commit comments

Comments
 (0)