Skip to content

Commit b7501e8

Browse files
committed
Debug Info: Add a testcase for clang submodule imports.
rdar://problem/17951343
1 parent d48fa73 commit b7501e8

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// RUN: rm -rf %t && mkdir -p %t
2+
// REQUIRES: OS=macosx
3+
4+
// RUN: %target-swift-frontend -emit-ir %s -g -o - | FileCheck %s
5+
6+
// CHECK: !DIImportedEntity(
7+
// CHECK: tag: DW_TAG_imported_module{{.*}}entity: ![[C:.*]], line: [[@LINE+1]])
8+
import Darwin.C
9+
10+
let irrational = sqrt(2 as Double)
11+
12+
// CHECK: ![[C]] = !DIModule(scope: ![[Darwin:.*]], name: "C",
13+
// CHECK: ![[Darwin]] = !DIModule(scope: null, name: "Darwin",

0 commit comments

Comments
 (0)