Files
swift-mirror/test/SILGen/Inputs/magic_identifier_file_conflicting_other.swift
Brent Royal-Gordon 0e569f5d9e Add support for #fileID
This temporarily breaks -enable-experimental-concise-pound-file.

fixup adding #fileID
2020-07-13 14:05:13 -07:00

9 lines
547 B
Swift

// This file matches test/SILGen/magic_identifier_file_conflicting.swift.
// It should be compiled with -verify.
// We should diagnose cross-file conflicts.
// expected-warning@+2 {{'#sourceLocation' directive produces '#fileID' string of 'Foo/other_file_c.swift', which conflicts with '#fileID' strings produced by other paths in the module}}
// expected-note@+1 {{change file in '#sourceLocation' to 'first/other_file_c.swift'}} {{23-50="first/other_file_c.swift"}}
#sourceLocation(file: "second/other_file_c.swift", line: 1)
#sourceLocation()