Files
swift-mirror/test/IRGen/class_is_module.swift
Erik Eckstein 069cd57089 Don't use substiutions when mangling ObjC runtime class names.
This caused a problem for classes which had the same name as the containing module.

SR-4374, rdar://problem/31272389
2017-03-30 10:24:29 -07:00

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