Files
swift-mirror/test/Frontend/invalid-testable-import.swift
Harlan Haskins f4b0e0e7b6 [Diagnostics] Mark invalid ‘@testable import’ as fatal
If this isn’t fatal, this will just end up cascading to a bunch of “could not find member … in …” errors, which hides the real issue.
2019-01-29 14:52:40 -08:00

8 lines
336 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t/single_int.swiftmodule %S/Inputs/single_int.swift
// RUN: not %target-swift-frontend -typecheck %s -I %t 2>&1 | %FileCheck %s
@testable import single_int // CHECK: module 'single_int' was not compiled for testing
x = 8 // CHECK-NOT: unresolved identifier