mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
12 lines
418 B
Swift
12 lines
418 B
Swift
// RUN: test ! -d %t || chmod +w %t
|
|
// RUN: %empty-directory(%t)
|
|
// RUN: touch %t/main.swiftmodule %t/main.swiftdoc
|
|
// RUN: chmod -w %t
|
|
|
|
// RUN: %target-swift-frontend -emit-module -emit-module-doc -parse-stdlib -o %t -module-name main %s || chmod +w %t
|
|
|
|
// This is not combined with the previous chmod because of pipefail mode.
|
|
// RUN: chmod +w %t
|
|
// RUN: test -s %t/main.swiftmodule
|
|
// RUN: test -s %t/main.swiftdoc
|