Skip to content

Commit 6d79bed

Browse files
author
David Ungar
committed
Replaced a test.
1 parent aa0687a commit 6d79bed

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Ensure that an error in a primary is reflected in the right .dia file and
2+
// that it causes other .dia files to be truncated, signalling incomplete compilation.
3+
//
4+
// RUN: rm -f %t.*
5+
6+
// RUN: not %target-swift-frontend -typecheck -primary-file %s -serialize-diagnostics-path %t.main.dia -primary-file %S/../Inputs/empty.swift -serialize-diagnostics-path %t.empty.dia 2> %t.stderr.txt
7+
// RUN: c-index-test -read-diagnostics %t.main.dia 2> %t.main.txt
8+
9+
// RUN: %FileCheck -check-prefix=ERROR %s <%t.main.txt
10+
// RUN: test -e %t.empty.dia -a ! -s %t.empty.dia
11+
12+
// ERROR: error:
13+
14+
func test(x: SomeType) {
15+
nonexistent()
16+
}

0 commit comments

Comments
 (0)