Skip to content

Commit 3bc4c32

Browse files
Merge pull request #60920 from AnthonyLatsis/migrate-test-suite-to-gh-issues-17
Gardening: Migrate test suite to GH issues p. 17
2 parents 6b85bdf + fa3a95e commit 3bc4c32

29 files changed

+126
-90
lines changed

test/NameLookup/InheritedConformance.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
// RUN: cp %s %t/main.swift
33
// RUN: %target-swift-frontend -typecheck -primary-file %t/main.swift -emit-reference-dependencies-path - > %t.swiftdeps
44

5-
// SR-1267, SR-1270
5+
// https://github.com/apple/swift/issues/43875
6+
// https://github.com/apple/swift/issues/43878
7+
68
protocol Protocol {}
79
class ConformingClass: Protocol {}
810
class BaseClass<T: Protocol> {}

test/NameLookup/custom_attrs_ambiguous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
import custom_attrs_A
66
import custom_attrs_B
77

8-
// SR-13470
8+
// https://github.com/apple/swift/issues/55912
99

1010
struct Test {
1111
@Wrapper var x: Int = 17

test/NameLookup/name_lookup.swift

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,8 @@ class ThisDerived1 : ThisBase1 {
288288
self.Type // expected-error {{type 'ThisDerived1' has no member 'Type'}}
289289
}
290290

291-
// FIXME(SR-15250): Partial application diagnostic is applied incorrectly for some test cases.
291+
// FIXME: Partial application diagnostic is applied incorrectly for some
292+
// test cases (https://github.com/apple/swift/issues/57572).
292293
class func staticTestSuper1() {
293294
super.baseInstanceVar = 42 // expected-error {{member 'baseInstanceVar' cannot be used on type 'ThisBase1'}}
294295
super.baseProp = 42 // expected-error {{member 'baseProp' cannot be used on type 'ThisBase1'}}
@@ -585,8 +586,8 @@ func foo1() {
585586
_ = MyGenericEnum<Int>.OneTwo // expected-error {{enum type 'MyGenericEnum<Int>' has no case 'OneTwo'; did you mean 'oneTwo'?}}{{26-32=oneTwo}}
586587
}
587588

588-
// SR-4082
589-
func foo2() {
589+
// https://github.com/apple/swift/issues/46665
590+
do {
590591
let x = 5
591592
if x < 0, let x = Optional(1) { } // expected-warning {{immutable value 'x' was never used; consider replacing with '_' or removing it}}
592593
}
@@ -649,8 +650,8 @@ struct PatternBindingWithTwoVars3 { var x = y, y = x }
649650
// expected-note@-11 {{through reference here}}
650651
// expected-note@-12 {{through reference here}}
651652

652-
// https://bugs.swift.org/browse/SR-9015
653-
func sr9015() {
653+
// https://github.com/apple/swift/issues/51518
654+
do {
654655
let closure1 = { closure2() } // expected-error {{circular reference}} expected-note {{through reference here}} expected-note {{through reference here}}
655656
let closure2 = { closure1() } // expected-note {{through reference here}} expected-note {{through reference here}} expected-note {{through reference here}}
656657
}

test/Parse/ConditionalCompilation/decl_in_true_inactive.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
// RUN: %target-typecheck-verify-swift -D FOO -D BAR
22

3-
// SR-3996 Incorrect type checking when using defines
3+
// https://github.com/apple/swift/issues/46581
4+
// Incorrect type checking when using defines
5+
//
46
// Decls in true-but-inactive blocks used to be leaked.
7+
58
func f1() -> Int {
69
#if FOO
710
let val = 1

test/Parse/ConditionalCompilation/pound-if-top-level-4.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// https://bugs.swift.org/browse/SR-4426
4-
// '#if' in top-level code that contains only decls should not disturb forward reference.
3+
// https://github.com/apple/swift/issues/47003
4+
// '#if' in top-level code that contains only declarations should not disturb
5+
// forward reference.
56

67
typealias A = B
78

test/Parse/diagnose_availability.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// SR-4231: Misleading/wrong error message for malformed @available
3+
// https://github.com/apple/swift/issues/46814
4+
// Misleading/wrong error message for malformed '@available'
45

56
@available(OSX 10.6, *) // no error
67
func availableSince10_6() {}
@@ -28,7 +29,8 @@ func availableOnMultiplePlatforms() {}
2829
func twoShorthandsFollowedByDeprecated() {}
2930

3031

31-
// SR-8598: Missing/wrong warning message for '*' or 'swift' platform.
32+
// https://github.com/apple/swift/issues/51114
33+
// Missing/wrong warning message for '*' or 'swift' platform.
3234

3335
@available(*, deprecated: 4.2)
3436
// expected-warning@-1 {{unexpected version number in 'available' attribute for non-specific platform '*'}} {{25-30=}}

test/Parse/diagnose_initializer_as_typed_pattern.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// https://bugs.swift.org/browse/SR-1461
3+
// https://github.com/apple/swift/issues/44070
44

55
class X {}
66
func foo() {}

test/Parse/diagnostic_missing_func_keyword.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: %target-typecheck-verify-swift
22

3-
// https://bugs.swift.org/browse/SR-10477
3+
// https://github.com/apple/swift/issues/52877
44

55
protocol Brew { // expected-note {{in declaration of 'Brew'}}
66
tripel() -> Int // expected-error {{expected 'func' keyword in instance method declaration}} {{3-3=func }}

test/Parse/dollar_identifier.swift

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// RUN: %target-typecheck-verify-swift -swift-version 4
22

3-
// SR-1661: Dollar was accidentally allowed as an identifier in Swift 3.
3+
// https://github.com/apple/swift/issues/44270
4+
// Dollar was accidentally allowed as an identifier in Swift 3.
45
// SE-0144: Reject this behavior in the future.
56

67
func dollarVar() {
@@ -105,7 +106,8 @@ infix operator **: $Precedence
105106
#$UnknownDirective() // expected-error {{use of unknown directive '#$UnknownDirective'}}
106107

107108

108-
// SR-13232
109+
// https://github.com/apple/swift/issues/55672
110+
109111
@propertyWrapper
110112
struct Wrapper {
111113
var wrappedValue: Int
@@ -118,5 +120,6 @@ struct S {
118120

119121
let _ = S().$café // Okay
120122

121-
infix operator $ // expected-error{{'$' is considered an identifier and must not appear within an operator name}} // SR-13092
122-
infix operator `$` // expected-error{{'$' is considered an identifier and must not appear within an operator name}} // SR-13092
123+
// https://github.com/apple/swift/issues/55538
124+
infix operator $ // expected-error{{'$' is considered an identifier and must not appear within an operator name}}
125+
infix operator `$` // expected-error{{'$' is considered an identifier and must not appear within an operator name}}

test/Parse/enum.swift

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -553,42 +553,43 @@ enum SE0155 {
553553
// expected-note@-2 {{did you mean to explicitly add a 'Void' associated value?}} {{18-18=Void}}
554554
}
555555

556-
// SR-11261
557-
enum SR11261 {
556+
// https://github.com/apple/swift/issues/53662
557+
558+
enum E_53662 {
558559
case identifier
559560
case operator // expected-error {{keyword 'operator' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{8-16=`operator`}}
560561
case identifier2
561562
}
562563

563-
enum SR11261_var {
564+
enum E_53662_var {
564565
case identifier
565566
case var // expected-error {{keyword 'var' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{8-11=`var`}}
566567
case identifier2
567568
}
568569

569-
enum SR11261_underscore {
570+
enum E_53662_underscore {
570571
case identifier
571572
case _ // expected-error {{keyword '_' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{8-9=`_`}}
572573
case identifier2
573574
}
574575

575-
enum SR11261_Comma {
576+
enum E_53662_Comma {
576577
case a, b, c, func, d // expected-error {{keyword 'func' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{17-21=`func`}}
577578
}
578579

579-
enum SR11261_Newline {
580+
enum E_53662_Newline {
580581
case identifier1
581582
case identifier2
582583
case
583584
case identifier // expected-error {{keyword 'case' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{3-7=`case`}}
584585
}
585586

586-
enum SR11261_Newline2 {
587+
enum E_53662_Newline2 {
587588
case
588589
func foo() {} // expected-error {{keyword 'func' cannot be used as an identifier here}} expected-note {{if this name is unavoidable, use backticks to escape it}} {{3-7=`func`}}
589590
}
590591

591-
enum SR11261_PatternMatching {
592+
enum E_53662_PatternMatching {
592593
case let .foo(x, y): // expected-error {{'case' label can only appear inside a 'switch' statement}}
593594
}
594595

0 commit comments

Comments
 (0)