- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathsugar.swift
16 lines (12 loc) · 575 Bytes
/
sugar.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// RUN: %empty-directory(%t)
// RUN: %target-build-swift -emit-executable %s -g -o %t/sugar -emit-module
// RUN: sed -ne '/\/\/ *DEMANGLE: /s/\/\/ *DEMANGLE: *//p' < %s > %t/input
// RUN: %lldb-moduleimport-test %t/sugar -type-from-mangled=%t/input | %FileCheck %s
func blackHole(_:Any...){}
func foo(){
leta:(Int?,[Float],[Double:String],(Bool))=(nil,[],[:],false)
blackHole(a)
}
// ParenType (XSp) has been removed, make sure it demangles for compatibility.
// DEMANGLE: $sSiXSq_SfXSaSdSSXSDSbXSptD
// CHECK: (Int?, [Float], [Double : String], Bool)