Files
swift-mirror/test/Concurrency/predates_concurrency_import_foundation_darwin.swift
Doug Gregor 810a98c2ef Teach "find imports" to equate overlay modules with their underlying modules
The operation that finds the best import for a given declaration was
treating an overload module as being distinct from its underlying
module, even though they both have the same name and are imported
together. Teach it to treat those modules as equivalent, so we
correctly identify the right import declaration for something that
comes from the underlying module.

Fixes rdar://129401319.
2024-06-13 17:06:01 -07:00

13 lines
278 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -swift-version 6 -I %t %s -emit-sil -o /dev/null -verify -parse-as-library
// REQUIRES: OS=macosx
import Foundation
@preconcurrency import Darwin
func mach_task_self() -> mach_port_t {
return mach_task_self_
}