Files
swift-mirror/test/SourceKit/Demangle/demangle.swift
Slava Pestov 9761e5ca42 Demangler: Print BuiltinFloatType as "FPIEEE<size>" not "Float<size>"
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.
2019-01-24 11:12:54 -05:00

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