Skip to content

Commit 5759fe6

Browse files
committed
test: add a test about .swiftsourceinfo file using Private directory
1 parent 4cd46d9 commit 5759fe6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/Driver/sourceinfo_file.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// RUN: %empty-directory(%t)
2+
// RUN: mkdir -p %t/build/Private
3+
// RUN: %swiftc_driver -driver-print-jobs -emit-module %s -emit-module-path %t/build/sourceinfo_file.swiftmodule -module-name sourceinfo_file | %FileCheck %s -check-prefix CHECK-PRIVATE
4+
5+
// CHECK-PRIVATE: Private/sourceinfo_file.swiftsourceinfo
6+
7+
// RUN: %empty-directory(%t/build)
8+
// RUN: %swiftc_driver -driver-print-jobs -emit-module %s -emit-module-path %t/build/sourceinfo_file.swiftmodule -module-name sourceinfo_file | %FileCheck %s -check-prefix CHECK-NOPRIVATE
9+
10+
// CHECK-NOPRIVATE-NOT: Private/sourceinfo_file.swiftsourceinfo
11+
// CHECK-NOPRIVATE: sourceinfo_file.swiftsourceinfo

0 commit comments

Comments
 (0)