mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
To get this to work, delay some "cleanup" work in the demangler. For example, we now preserve in the tree whether something was mangled as an allocating initializer, and we only special-case the class vs. non-class cases in the pretty printer. Also fixes a number of remangling bugs, of course. Swift SVN r24534
15 lines
432 B
Swift
15 lines
432 B
Swift
; This is not really a Swift source file: -*- Text -*-
|
|
|
|
%t.input: "A ---> B" ==> "A"
|
|
RUN: sed -ne '/--->/s/ *--->.*$//p' < %S/Inputs/manglings.txt > %t.input
|
|
|
|
%t.check: "A ---> B" ==> "B"
|
|
RUN: sed -ne '/--->/s/^.*---> *//p' < %S/Inputs/manglings.txt > %t.check
|
|
|
|
RUN: swift-demangle < %t.input > %t.output
|
|
RUN: diff %t.check %t.output
|
|
|
|
; RUN: swift-demangle __TtSi | FileCheck %s -check-prefix=DOUBLE
|
|
; DOUBLE: _TtSi ---> Swift.Int
|
|
|