forked from swiftlang/swift
- Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathany.swift
16 lines (13 loc) · 487 Bytes
/
any.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
func markUsed<T>(_ t:T){}
func main(){
// CHECK: define hidden swiftcc void @"$s3any4mainyyF"
// CHECK: #dbg_declare(ptr {{.*}}, ![[S:.*]], !DIExpression(), ![[DBG:.*]])
// CHECK: ![[S]] = !DILocalVariable(name: "s", {{.*}}line: [[@LINE+2]]
// CHECK: ![[DBG]] = !DILocation(line: [[@LINE+1]], column: 7,
vars:Any="hello world"
varn:Any=12
vart:Any=(1,2)
markUsed("hello world")
}
main()