File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 14
14
// RUN: echo 'public func meow() -> Cat.Klass? { return nil }' >> %t/FileFoo.swift
15
15
// RUN: %target-swift-frontend -module-name Foo %t/FileFoo.swift -module-alias Cat=Bar -I %t -emit-module -emit-module-path %t/Foo.swiftmodule -c -o %t/ResultFoo.o
16
16
17
- /// Check Foo.swiftmodule is created and Bar.swiftmodule is loaded
17
+ /// Check Foo.swiftmodule is created
18
18
// RUN: test -f %t/Foo.swiftmodule
19
19
20
+ /// Check the mangled name for func meow contains the real module name Bar
20
21
// RUN: llvm-objdump -t %t/ResultFoo.o | %FileCheck %s -check-prefix=CHECK-A
21
- // CHECK-A: _$ s3Foo4meow3Bar5KlassCSgyF
22
+ // CHECK-A: s3Foo4meow3Bar5KlassCSgyF
22
23
24
+ /// Check demangling shows the real module name Bar
23
25
// RUN: llvm-objdump -t %t/ResultFoo.o | swift-demangle | %FileCheck %s -check-prefix=CHECK-B
24
26
// CHECK-B: Foo.meow() -> Bar.Klass?
25
27
You can’t perform that action at this time.
0 commit comments