blob: 190e88395de5bed2bb31f4ad8d4f5567012df0d7 [file] [log] [blame]
// RUN: rm -rf %t && mkdir -p %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