mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
413 B
Swift
14 lines
413 B
Swift
// RUN: rm -rf %t && mkdir -p %t
|
|
// REQUIRES: OS=macosx
|
|
|
|
// RUN: %target-swift-frontend -emit-ir %s -g -o - | FileCheck %s
|
|
|
|
// CHECK: !DIImportedEntity(
|
|
// CHECK: tag: DW_TAG_imported_module{{.*}}entity: ![[C:.*]], line: [[@LINE+1]])
|
|
import Darwin.C
|
|
|
|
let irrational = sqrt(2 as Double)
|
|
|
|
// CHECK: ![[C]] = !DIModule(scope: ![[Darwin:.*]], name: "C",
|
|
// CHECK: ![[Darwin]] = !DIModule(scope: null, name: "Darwin",
|