mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This part of a series of patches to bring ASTPrinter and Swift Demangler to feature parity, which is needed by LLDB, which depends on using the strings produced by either interchangibly. rdar://problem/64222171
19 lines
920 B
Plaintext
19 lines
920 B
Plaintext
RUN: swift-demangle -display-stdlib-module=true sSi | %FileCheck %s --check-prefix=SWIFT-INT
|
|
SWIFT-INT: {{ Swift.Int$}}
|
|
RUN: swift-demangle -display-stdlib-module=false sSi | %FileCheck %s --check-prefix=INT
|
|
INT: {{ Int$}}
|
|
|
|
RUN: swift-demangle -display-objc-module=true sSo6CGRectVD | %FileCheck %s --check-prefix=OBJC-CGRECT
|
|
OBJC-CGRECT: {{ __C.CGRect$}}
|
|
RUN: swift-demangle -display-objc-module=false sSo6CGRectVD | %FileCheck %s --check-prefix=CGRECT
|
|
CGRECT: {{ CGRect$}}
|
|
|
|
RUN: swift-demangle -hiding-module=foo _TtC3foo3bar | %FileCheck %s --check-prefix=BAR
|
|
BAR: {{ bar$}}
|
|
|
|
RUN: swift-demangle -display-local-name-contexts=true s1a4mainyyFySRys5UInt8VGXEfU4_10ByteBufferL_aD | %FileCheck %s --check-prefix=LOCAL
|
|
LOCAL: ByteBuffer #1 in closure #6
|
|
|
|
RUN: swift-demangle -display-local-name-contexts=false s1a4mainyyFySRys5UInt8VGXEfU4_10ByteBufferL_aD | %FileCheck %s --check-prefix=NOLOCAL
|
|
NOLOCAL: {{ ByteBuffer$}}
|