Files
swift-mirror/test/DebugInfo/ASTSection-single.swift
T
Steven Wu 12f8d9c6c9 [TEST] Switch to use new swift-driver when running tests
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.
2026-03-23 09:48:45 -07:00

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!