forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't treat missing imports as an error when -debugger-support is on.
For now, also check that -playground is off; once <rdar://problem/18090611> is in we can drop this check and treat them as mostly orthogonal options. Part of <rdar://problem/17994094> Swift SVN r21385
- Loading branch information
1 parent
9b0d643
commit 9d2e2cb
Showing
4 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
// RUN: %swift %s -verify -debugger-support | ||
|
||
import Nonexistent_Module // expected-error {{no such module}} | ||
|
||
var ($x0, $x1) = (4, 3) | ||
var z = $x0 + $x1 | ||
|
||
z // no error. | ||
|
||
var x: Double = z // expected-error {{'Int' is not convertible to 'Double'}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
// RUN: rm -rf %t && mkdir %t | ||
// RUN: cp %s %t/main.swift | ||
// RUN: %swift -parse -playground %t/main.swift -verify | ||
var $a = 2 // expected-error {{expected numeric value following '$'}} | ||
// RUN: not %swift -parse -playground %t/main.swift 2>&1 | FileCheck %s | ||
// RUN: not %swift -parse -playground -debugger-support %t/main.swift 2>&1 | FileCheck %s | ||
|
||
// CHECK: error: no such module | ||
import Nonexistent_Module | ||
// CHECK-NOT: error | ||
import Another_Nonexistent_Module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// RUN: rm -rf %t && mkdir %t | ||
// RUN: cp %s %t/main.swift | ||
// RUN: %swift -parse -playground %t/main.swift -verify | ||
var $a = 2 // expected-error {{expected numeric value following '$'}} |