Skip to content

Commit 4e633b6

Browse files
authored
Merge pull request #33835 from owenv/dont-test-null-sourcelocs
2 parents e903630 + 6b6b640 commit 4e633b6

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/Frontend/unknown-arguments.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: not %swift -fake-argument -abcdef -c %s -o %t.o 2>&1 | %FileCheck %s
22

3-
// CHECK: <unknown>:0: error: unknown argument: '-fake-argument'
4-
// CHECK-NEXT: <unknown>:0: error: unknown argument: '-abcdef'
3+
// CHECK: error: unknown argument: '-fake-argument'
4+
// CHECK-NEXT: error: unknown argument: '-abcdef'
55

66
// RUN: not %swiftc_driver -c %s -o %t.o -Xfrontend -fake-frontend-arg -Xfrontend fakevalue 2>&1 | %FileCheck -check-prefix=XFRONTEND %s
77

8-
// XFRONTEND: <unknown>:0: error: unknown argument: '-fake-frontend-arg'
8+
// XFRONTEND: error: unknown argument: '-fake-frontend-arg'
99

1010
// RUN: not %swiftc_driver -D Correct -DAlsoCorrect -D@#%! -D Swift=Cool -D-D -c %s -o %t.o 2>&1 | %FileCheck -check-prefix=INVALID-COND %s
11-
// INVALID-COND: <unknown>:0: error: conditional compilation flags must be valid Swift identifiers (rather than '@#%!')
12-
// INVALID-COND-NEXT: <unknown>:0: warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'Swift=Cool')
13-
// INVALID-COND-NEXT: <unknown>:0: error: invalid argument '-D-D'; did you provide a redundant '-D' in your build settings?
11+
// INVALID-COND: error: conditional compilation flags must be valid Swift identifiers (rather than '@#%!')
12+
// INVALID-COND-NEXT: warning: conditional compilation flags do not have values in Swift; they are either present or absent (rather than 'Swift=Cool')
13+
// INVALID-COND-NEXT: error: invalid argument '-D-D'; did you provide a redundant '-D' in your build settings?
1414

test/Misc/serialized-diagnostics-batch-mode.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// The `-serialize-diagnostics-path` flag is not allowed for batch mode invoked by swiftc
44
// RUN: not %target-swiftc_driver -serialize-diagnostics-path %t.notexpected.dia %s %S/Inputs/serialized-diagnostics-batch-mode-helper.swift -c -o %t.o 2>&1 | %FileCheck %s
5-
// CHECK: <unknown>:0: error: option '-serialize-diagnostics-path' is not supported by 'swiftc'; did you mean to use 'swift'?
5+
// CHECK: error: option '-serialize-diagnostics-path' is not supported by 'swiftc'; did you mean to use 'swift'?
66
// RUN: not ls %t.notexpected.dia > /dev/null
77
// RUN: not ls %t.o > /dev/null
88

0 commit comments

Comments
 (0)