- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathbound-namealiastype.swift
18 lines (15 loc) · 722 Bytes
/
bound-namealiastype.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s
publicprotocolOS_dispatch_queue{
}
publictypealiasdispatch_queue_t=OS_dispatch_queue
func dispatch_queue_create()->dispatch_queue_t!{
returnnil
}
// CHECK: !DIGlobalVariable(name: "queue",
// CHECK-SAME: line: [[@LINE+6]], type: ![[TY_CONTAINER:[0-9]+]]
// CHECK: ![[TY_CONTAINER]] = !DICompositeType({{.*}}elements: ![[TY_ELTS:[0-9]+]]
// CHECK: ![[TY_ELTS]] = !{![[TY_MEMBER:[0-9]+]]}
// CHECK: ![[TY_MEMBER]] = !DIDerivedType(tag: DW_TAG_member, {{.*}}baseType: ![[TY:[0-9]+]]
// CHECK: ![[TY]] = !DICompositeType(
// CHECK-SAME: name: "$s4main16dispatch_queue_taSgD"
publicvarqueue=dispatch_queue_create()