Skip to content

Commit defe364

Browse files
Merge pull request #1668 from practicalswift/add-apache-license-header-to-crashers
[crashers] Add license header: Apache License v2.0 with Runtime Library Exception
2 parents 5a5e655 + 7f5266d commit defe364

File tree

31 files changed

+280
-62
lines changed

31 files changed

+280
-62
lines changed

validation-test/compiler_crashers/24245-swift-constraints-constraintsystem-solve.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not --crash %target-swift-frontend %s -parse
210
// REQUIRES: asserts
311

4-
// Distributed under the terms of the MIT license
5-
// Test case found by https://github.com/robrix (Rob Rix)
12+
// Issue found by https://github.com/robrix (Rob Rix)
613
// http://www.openradar.me/19924870
714

815
func unit<T>(x: T) -> T? {

validation-test/compiler_crashers/26813-generic-enum-tuple-optional-payload.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not --crash %target-swift-frontend %s -parse
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/austinzheng (Austin Zheng)
11+
// Issue found by https://github.com/austinzheng (Austin Zheng)
512

613
enum A<T> {
714
case Just(T)

validation-test/compiler_crashers_fixed/00006-swift-mangle-mangler-manglecontext.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -parse -verify
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/AlexDenisov (Alexey Denisov)
11+
// Issue found by https://github.com/AlexDenisov (Alexey Denisov)
512

613
func i(c: () -> ()) {
714
}

validation-test/compiler_crashers_fixed/00012-emitdirecttypemetadataref.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
11+
// Issue found by https://github.com/robrix (Rob Rix)
512
// http://www.openradar.me/17822208
613
// https://twitter.com/rob_rix/status/493199478879682561
714

validation-test/compiler_crashers_fixed/00017-llvm-foldingset-llvm-attributesetnode-nodeequals.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -parse -verify
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/jvasileff (John Vasileff)
11+
// Issue found by https://github.com/jvasileff (John Vasileff)
512
// This bug is NOT triggered when compiling with -O.
613

714
func f<T : Boolean>(b: T) {

validation-test/compiler_crashers_fixed/00018-swift-irgen-emitpolymorphicarguments.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -parse -verify
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/owensd (David Owens II)
11+
// Issue found by https://github.com/owensd (David Owens II)
512

613
func a<T>() { // expected-error {{generic parameter 'T' is not used in function signature}}
714
enum b { // expected-error {{type 'b' nested in generic function 'a' is not allowed}}

validation-test/compiler_crashers_fixed/00024-emitdirecttypemetadataref.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
11+
// Issue found by https://github.com/robrix (Rob Rix)
512
// http://www.openradar.me/17662010
613
// https://twitter.com/rob_rix/status/488692270908973058
714

validation-test/compiler_crashers_fixed/00025-no-stacktrace.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
11+
// Issue found by https://github.com/robrix (Rob Rix)
512
// http://www.openradar.me/17501507
613
// https://twitter.com/rob_rix/status/483456023773315073
714

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

3-
// Test case submitted to project by https://github.com/jansabbe (Jan Sabbe)
11+
// Issue found by https://github.com/jansabbe (Jan Sabbe)
412

513
class A<B : Collection where B : AnyObject> {
614
}

validation-test/compiler_crashers_fixed/00036-szone-malloc-should-clear.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
11+
// Issue found by https://github.com/tenderlove (Aaron Patterson)
512
// https://gist.github.com/tenderlove/66ff6ae1feed92ac37f2
613

714
func a(x: Any, _ y: Any) -> (((Any, Any) -> Any) -> Any) {

validation-test/compiler_crashers_fixed/00043-substdependenttypes.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not %target-swift-frontend %s -parse
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/jvasileff (John Vasileff)
11+
// Issue found by https://github.com/jvasileff (John Vasileff)
512

613
protocol A {
714
typealias B

validation-test/compiler_crashers_fixed/00047-emitdirecttypemetadataref.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
11+
// Issue found by https://github.com/robrix (Rob Rix)
512
// http://www.openradar.me/18248167
613
// https://twitter.com/rob_rix/status/507976289564000258
714

validation-test/compiler_crashers_fixed/00049-swift-nominaltypedecl-getmembers.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not %target-swift-frontend %s -emit-sil
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/rnapier (Rob Napier)
11+
// Issue found by https://github.com/rnapier (Rob Napier)
512

613
var f = 1
714
var e: Int -> Int = {
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not %target-swift-frontend %s -parse
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/rnapier (Rob Napier)
11+
// Issue found by https://github.com/rnapier (Rob Napier)
512

613
func b(c) -> <d>(() -> d) {
714
}

validation-test/compiler_crashers_fixed/00052-no-stacktrace.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not %target-swift-frontend %s
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
11+
// Issue found by https://github.com/robrix (Rob Rix)
512
// http://www.openradar.me/18332184
613
// https://twitter.com/rob_rix/status/510875744667701248
714

validation-test/compiler_crashers_fixed/00239-swiftdeclconverter-importconstructor.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not %target-swift-frontend %s -parse
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
11+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
512

613
import Foundation
714
extension NSSet {

validation-test/compiler_crashers_fixed/00240-argemitter-emitexpanded.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-silgen
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
11+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
512

613
class A {
714
private let a = [B<(AnyObject, AnyObject) -> Void>]()

validation-test/compiler_crashers_fixed/00241-swift-lowering-typeconverter-getconstantinfo.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -parse
210

311
// REQUIRES: objc_interop
412

5-
// Distributed under the terms of the MIT license
6-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
13+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
714

815
import Foundation
916
extension NSSet {

validation-test/compiler_crashers_fixed/00242-swift-lowering-silgenfunction-emitclosurevalue.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -parse -verify
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
11+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
512

613
class A {
714
class func a() -> String {

validation-test/compiler_crashers_fixed/00272-llvm-irbuilder-createcall.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: not %target-swift-frontend %s -parse
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
11+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
512

613
class A {
714
class func a() -> Self {

validation-test/compiler_crashers_fixed/01340-llvm-getelementptrinst-getindexedtype.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-ir
210

311
// REQUIRES: objc_interop
412

5-
// Distributed under the terms of the MIT license
6-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
13+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
714

815
import Foundation
916
class X {

validation-test/compiler_crashers_fixed/01341-broken-function-found-compilation-aborted.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-silgen
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)
11+
// Issue found by https://github.com/fluidsonic (Marc Knaup)
512

613
class A {
714
var a: () {

validation-test/compiler_crashers_fixed/01647-no-stacktrace.swift

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
// This source file is part of the Swift.org open source project
2+
//
3+
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
4+
// Licensed under Apache License v2.0 with Runtime Library Exception
5+
//
6+
// See http://swift.org/LICENSE.txt for license information
7+
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
8+
19
// RUN: %target-swift-frontend %s -emit-silgen
210

3-
// Distributed under the terms of the MIT license
4-
// Test case submitted to project by https://github.com/radex
11+
// Issue found by https://github.com/radex
512
// rdar://18851497
613

714
struct A {

0 commit comments

Comments
 (0)