Files
swift-mirror/test/Interpreter/submodules_smoke_test.swift
2020-04-28 14:11:39 -07:00

11 lines
319 B
Swift

// RUN: %target-build-swift -typecheck %s -F %S/Inputs -Xfrontend -verify
// RUN: %target-build-swift -emit-ir -g %s -F %S/Inputs -DNO_ERROR > /dev/null
// REQUIRES: executable_test
import ExplicitSubmodulesOnly.B
_ = constantB
#if !NO_ERROR
_ = constantA // expected-error{{cannot find 'constantA' in scope}}
#endif