Use %target-typecheck-verify-swift where possible.

This commit is contained in:
Mark Lacey
2018-07-26 23:13:43 -07:00
parent 00c7cb60c1
commit 78d83e5703
44 changed files with 47 additions and 47 deletions

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
import Darwin

View File

@@ -4,7 +4,7 @@
// First test the explicit frontend-based bridging PCH generation and use works
// RUN: %target-swift-frontend -emit-pch -o %t/sdk-bridging-header.pch %S/Inputs/sdk-bridging-header.h
// RUN: %target-swift-frontend -typecheck -verify %s -import-objc-header %t/sdk-bridging-header.pch
// RUN: %target-typecheck-verify-swift -import-objc-header %t/sdk-bridging-header.pch
// Now test the driver-automated version is inert when disabled
// RUN: env TMPDIR=%t/tmp/ %target-swiftc_driver -typecheck -disable-bridging-pch -save-temps %s -import-objc-header %S/Inputs/sdk-bridging-header.h
@@ -23,11 +23,11 @@
// Test -emit-pch invocation but with a persistent PCH
// RUN: %target-swift-frontend -emit-pch -pch-output-dir %t/pch %S/Inputs/sdk-bridging-header.h
// RUN: %target-swift-frontend -typecheck -verify %s -import-objc-header %S/Inputs/sdk-bridging-header.h -pch-output-dir %t/pch -pch-disable-validation
// RUN: %target-typecheck-verify-swift -import-objc-header %S/Inputs/sdk-bridging-header.h -pch-output-dir %t/pch -pch-disable-validation
// RUN: ls %t/pch/*.pch >/dev/null 2>&1
// Test implicit use of persistent PCH
// RUN: %target-swift-frontend -typecheck -verify %s -import-objc-header %S/Inputs/sdk-bridging-header.h -pch-output-dir %t/pch2
// RUN: %target-typecheck-verify-swift -import-objc-header %S/Inputs/sdk-bridging-header.h -pch-output-dir %t/pch2
// RUN: ls %t/pch2/*.pch >/dev/null 2>&1
// RUN: touch %t/header.with.dot.h

View File

@@ -1,7 +1,7 @@
// RUN: %target-swift-frontend -typecheck -verify %s -import-objc-header %S/Inputs/sdk-bridging-header.h
// RUN: %target-typecheck-verify-swift -import-objc-header %S/Inputs/sdk-bridging-header.h
// RUN: not %target-swift-frontend -typecheck %s -import-objc-header %S/Inputs/bad-bridging-header.h 2>&1 | %FileCheck -check-prefix=CHECK-FATAL %s
// RUN: %target-swift-frontend -typecheck -verify %s -Xcc -include -Xcc %S/Inputs/sdk-bridging-header.h -import-objc-header %S/../Inputs/empty.swift
// RUN: %target-typecheck-verify-swift -Xcc -include -Xcc %S/Inputs/sdk-bridging-header.h -import-objc-header %S/../Inputs/empty.swift
// RUN: not %target-swift-frontend -typecheck %s -Xcc -include -Xcc %S/Inputs/bad-bridging-header.h 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE %s
// RUN: not %target-swift-frontend -typecheck %s -Xcc -include -Xcc %S/Inputs/bad-bridging-header.h -import-objc-header %S/../Inputs/empty.swift 2>&1 | %FileCheck -check-prefix=CHECK-INCLUDE %s

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// XFAIL: linux

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
func dict() -> [AnyHashable: Any] {
return ["x": "y"]

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
protocol Foo {
associatedtype Flim
associatedtype Flam

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// REQUIRES: objc_interop

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s -disable-objc-interop
// RUN: %target-typecheck-verify-swift -disable-objc-interop
var x: Any = 1

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// rdar://problem/29954938 -- A bug in associated type inference exposed an
// order dependency where, if a type conformed to Collection in one extension

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// rdar://problem/29954938 -- A bug in associated type inference exposed an
// order dependency where, if a type conformed to Collection in one extension

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// rdar://problem/29954938 -- A bug in associated type inference exposed an
// order dependency where, if a type conformed to Collection in one extension

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// rdar://problem/29954938 -- A bug in associated type inference exposed an
// order dependency where, if a type conformed to Collection in one extension

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
func foo(_:[() -> ()]){}
func foo(_:[() throws -> ()]){}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
protocol P {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
protocol P { }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
func escapeByBitCast(f: () -> ()) -> () -> () {
return unsafeBitCast(f, to: (() -> ()).self)

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// REQUIRES: objc_interop
// REQUIRES: OS=macosx

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
var global = 42
@dynamicMemberLookup

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s -swift-version 4
// RUN: %target-typecheck-verify-swift -swift-version 4
protocol Mashable { }
protocol Womparable { }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
let x = 1
let y = 2

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// This used to crash in SILGen (rightly so).
func sr3210_crash() {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
func foo(a : [(some: Int, (key: Int, value: String))]) -> String {
for (i , (j, k)) in a { // expected-error {{cannot express tuple conversion '(some: Int, (key: Int, value: String))' to '(Int, (Int, String))'}}{8-8=some: }} {{13-13=key: }} {{16-16=value: }}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// SR-5163
func sr5163() {

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
class A1 {
func foo1() {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
enum Foo: Int, RawRepresentable { case A }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
enum Foo: Int { case A }
extension Foo: RawRepresentable {}

View File

@@ -1,5 +1,5 @@
// RUN: %target-swift-frontend -typecheck -primary-file %s %S/Inputs/enum_raw_representable_explicit_multi_file_2.swift
// RUN: %target-swift-frontend -typecheck -verify %s -primary-file %S/Inputs/enum_raw_representable_explicit_multi_file_2.swift
// RUN: %target-typecheck-verify-swift -primary-file %S/Inputs/enum_raw_representable_explicit_multi_file_2.swift
enum Foo: Int { case A }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
protocol NeedsF0 {
func f0() // expected-note {{protocol requires function 'f0()' with type '() -> ()'; do you want to add a stub?}}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
enum Foo<T> {
indirect case A // expected-error{{enum case 'A' without associated value cannot be 'indirect'}}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// REQUIRES: objc_interop
import Foundation

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// REQUIRES: objc_interop

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
class Object {}
class Responder: Object {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// Protocol requirement is witnessed from a member of a

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
class C {}
class D {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
func frob(x: inout Int) {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
struct User {
var id: Int

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
struct A {
subscript(x: Int) -> Int { return x }

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// Ensure that key path exprs can tolerate being re-type-checked when necessary
// to diagnose other errors in adjacent exprs.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// Check that all combinations of key paths produce the expected result type
// and choose the expected overloads.

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// FIXME: No simd module on linux rdar://problem/20795411
// XFAIL: linux

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
enum MSV : Error {
case Foo, Bar, Baz

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
protocol Command {}

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
// RUN: %target-swift-frontend -typecheck -debug-generic-signatures %s 2>&1 | %FileCheck %s
// RUN: %target-swift-frontend -primary-file %s -emit-ir -o -

View File

@@ -1,4 +1,4 @@
// RUN: %target-swift-frontend -typecheck -verify %s
// RUN: %target-typecheck-verify-swift
func CVarArgs_withBool() {
func varArgFunc(_ x: Bool, _ args: CVarArg...) { }