mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The type checker calls these types Builtin.FPIEEE<size>; the demangler should too. This is just cosmetic at the moment, but it was causing problems when I added support for builtin types to the TypeDecoder.
22 lines
1.0 KiB
Swift
22 lines
1.0 KiB
Swift
// RUN: %sourcekitd-test -req=demangle unmangled _TtBf80_ _TtP3foo3bar_ '$s3Foo11AppDelegateC29applicationDidFinishLaunchingyy10Foundation12NotificationVF' | %FileCheck %s
|
|
// CHECK: START DEMANGLE
|
|
// CHECK-NEXT: <empty>
|
|
// CHECK-NEXT: Builtin.FPIEEE80
|
|
// CHECK-NEXT: foo.bar
|
|
// CHECK-NEXT: Foo.AppDelegate.applicationDidFinishLaunching(Foundation.Notification) -> ()
|
|
// CHECK-NEXT: END DEMANGLE
|
|
|
|
// RUN: %sourcekitd-test -req=demangle unmangled _TtBf80_ _TtP3foo3bar_ '$s3Foo11AppDelegateC29applicationDidFinishLaunchingyy10Foundation12NotificationVF' -simplified-demangling | %FileCheck %s -check-prefix=SIMPLIFIED
|
|
// SIMPLIFIED: START DEMANGLE
|
|
// SIMPLIFIED-NEXT: <empty>
|
|
// SIMPLIFIED-NEXT: Builtin.FPIEEE80
|
|
// SIMPLIFIED-NEXT: bar
|
|
// SIMPLIFIED-NEXT: AppDelegate.applicationDidFinishLaunching(_:)
|
|
// SIMPLIFIED-NEXT: END DEMANGLE
|
|
|
|
// RUN: %sourcekitd-test -req=mangle Foo.Baru Swift.Beer | %FileCheck %s -check-prefix=MANGLED
|
|
// MANGLED: START MANGLE
|
|
// MANGLED-NEXT: $s3Foo4BaruCD
|
|
// MANGLED-NEXT: $ss4BeerCD
|
|
// MANGLED-NEXT: END MANGLE
|