mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This patch fixes a problem where a CompilerInvocation with no arguments would set the LangaugeOpts etc. up for the deprecated-integrated-repl, including setting the module name etc. Now this only happens if you explicitly invoke swift -frontend -repl. Updated testcases that care, and added a new testcase to ensure that an error is properly generated. <rdar://problem/17918172> Swift SVN r21537
6 lines
231 B
Swift
6 lines
231 B
Swift
// RUN: %swift -repl -Xllvm -help 2>&1 | FileCheck %s --check-prefix=CHECK-HELP
|
|
// CHECK-HELP: -version
|
|
|
|
// RUN: %swift -Xllvm -version -emit-sil %s 2>&1 | FileCheck %s -check-prefix=CHECK-SIL
|
|
// CHECK-SIL: LLVM (http://llvm.org/)
|