- Notifications
You must be signed in to change notification settings - Fork 10.5k
/
Copy pathload-invalid-doc.swift
17 lines (12 loc) · 735 Bytes
/
load-invalid-doc.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -o %t %S/../Inputs/empty.swift
// RUN: %target-swift-frontend -typecheck -I %t %s
// RUN: touch %t/empty.swiftdoc
// RUN: %target-swift-frontend -typecheck -I %t %s -verify -show-diagnostics-after-fatal
// RUN: echo -n 'a' > %t/empty.swiftdoc
// RUN: %target-swift-frontend -typecheck -I %t %s -verify -show-diagnostics-after-fatal
// RUN: echo -n 'abcd' > %t/empty.swiftdoc
// RUN: %target-swift-frontend -typecheck -I %t %s -verify -show-diagnostics-after-fatal
// RUN: echo -n 'abcde' > %t/empty.swiftdoc
// RUN: %target-swift-frontend -typecheck -I %t %s -verify -show-diagnostics-after-fatal
import empty // expected-error{{malformed compiled module}}