mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
This caused a problem for classes which had the same name as the containing module. SR-4374, rdar://problem/31272389
12 lines
339 B
Swift
12 lines
339 B
Swift
// RUN: %target-swift-frontend -module-name=Hello -emit-ir %s | %FileCheck %s
|
|
// REQUIRES: OS=macosx
|
|
|
|
// Check if we mangle the objc runtime name correctly if a class has the same name as the module.
|
|
|
|
class Hello {}
|
|
|
|
// CHECK-DAG: _METACLASS_DATA__TtC5Hello5Hello
|
|
// CHECK-DAG: c"_TtC5Hello5Hello\00"
|
|
// CHECK-DAG: _DATA__TtC5Hello5Hello
|
|
|