Skip to content

Commit e130fde

Browse files
committed
Fix test for linux
1 parent 782ba98 commit e130fde

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/Frontend/load-module-with-alias-mangling.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414
// RUN: echo 'public func meow() -> Cat.Klass? { return nil }' >> %t/FileFoo.swift
1515
// 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
1616

17-
/// Check Foo.swiftmodule is created and Bar.swiftmodule is loaded
17+
/// Check Foo.swiftmodule is created
1818
// RUN: test -f %t/Foo.swiftmodule
1919

20+
/// Check the mangled name for func meow contains the real module name Bar
2021
// RUN: llvm-objdump -t %t/ResultFoo.o | %FileCheck %s -check-prefix=CHECK-A
21-
// CHECK-A: _$s3Foo4meow3Bar5KlassCSgyF
22+
// CHECK-A: s3Foo4meow3Bar5KlassCSgyF
2223

24+
/// Check demangling shows the real module name Bar
2325
// RUN: llvm-objdump -t %t/ResultFoo.o | swift-demangle | %FileCheck %s -check-prefix=CHECK-B
2426
// CHECK-B: Foo.meow() -> Bar.Klass?
2527

0 commit comments

Comments
 (0)