- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathmodule-trace.swift
20 lines (15 loc) · 777 Bytes
/
module-trace.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module-path %t/unsafe_swift_decls.swiftmodule %S/Inputs/unsafe_swift_decls.swift
// RUN: %target-swift-frontend -emit-module-path %t/safe_swift_decls.swiftmodule %S/Inputs/safe_swift_decls.swift -strict-memory-safety
// RUN: %target-typecheck-verify-swift -strict-memory-safety -I %S/Inputs -I %t -emit-loaded-module-trace-path %t/unsafe.trace
// RUN: %FileCheck -check-prefix TRACE %s < %t/unsafe.trace
import unsafe_decls
import unsafe_swift_decls
import safe_swift_decls
// Module-level indication
// TRACE: "strictMemorySafety":true
// Dependencies
// TRACE-SAME: "safe_swift_decls"
// TRACE-SAME: "strictMemorySafety":true
// TRACE-SAME: "unsafe_swift_decls"
// TRACE-SAME: "strictMemorySafety":false