mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
14 lines
337 B
Swift
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)
|