Files
swift-mirror/test/stdlib/UnicodeMetadata.swift
Erik Eckstein b7ba524607 Add a test case for non-ascii module names.
With the old remangler this test crashed at runtime when trying to create the mangled name for a class with a non-ascii module name.

rdar://problem/31875699
2017-04-28 08:56:47 -07:00

14 lines
337 B
Swift

// RUN: %target-build-swift -module-name="01" %s -o %t.out
// RUN: %target-run %t.out | %FileCheck %s
// REQUIRES: executable_test
class myClass { }
// Check that the runtime doesn't crash when generating the class name with
// a non-ascii module name.
let array = [ myClass() ]
// CHECK: [01.myClass]
print(array)