Files
swift-mirror/test/Interpreter/rdar128667580.swift
Pavel Yaskevich 5d243bd8a2 [IRGen] Move marker protocol stripping from mangleTypeSymbol to mangleTypeForFlatUniqueTypeRef
The original check introduced by https://github.com/apple/swift/pull/71855
is too broad. For concrete metadata we call the runtime demangler so
we need to strip off marker protocols when mangling that string and
`mangleTypeForReflection` already does that.
2024-06-04 21:58:59 -07:00

28 lines
630 B
Swift

// RUN: %empty-directory(%t)
// RUN: split-file %s %t
// RUN: %target-clang %t/Impl.m -c -o %t/Test.o
// RUN: %target-build-swift %t/main.swift -import-objc-header %t/Test.h %t/Test.o -Xfrontend -disable-concrete-type-metadata-mangled-name-accessors -o %t/main
// RUN: %target-codesign %t/main
// RUN: %target-run %t/main | %FileCheck %s
// REQUIRES: executable_test
// REQUIRES: objc_interop
// REQUIRES: concurrency
//--- Test.h
#import "Foundation/Foundation.h"
@interface Test : NSObject { }
@end
//--- Impl.m
#import "Test.h"
@implementation Test
@end
//--- main.swift
print((any Test & Sendable).self)
// CHECK: Test