mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
12f8d9c6c9
Default to use new swift-driver to run lit tests as legacy swift driver is deprecated for a long time. The lit tests for legacy drivers are also disable when running new swift-driver. Tests that relies on legacy swift driver (for example, tests merge module) can be enabled on conditions `legacy_swift_driver`. Fix and split up some existing tests that relies on legacy driver.
16 lines
563 B
Swift
16 lines
563 B
Swift
// REQUIRES: executable_test
|
|
// REQUIRES: swift_tools_extra
|
|
|
|
// Test that a module-wrapped Swift AST section can be parsed.
|
|
|
|
// RUN: %empty-directory(%t)
|
|
|
|
// RUN: echo "public let a0 = 0" >%t/a0.swift
|
|
// RUN: %target-build-swift %t/a0.swift -emit-module -emit-module-path %t/a0.swiftmodule -I %s/Inputs
|
|
// RUN: %target-swift-modulewrap %t/a0.swiftmodule -o %t/a0-mod.o
|
|
|
|
// RUN: %lldb-moduleimport-test -verbose %t/a0-mod.o | %FileCheck %s
|
|
// CHECK: Path: {{.*}}{{/|\\}}Inputs, framework=false, system=false
|
|
// CHECK: Importing a0...
|
|
// CHECK: Import successful!
|