mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
* Fix unnecessary one-time recompile of stdlib with -enable-ossa-flag This includes a bit in the module format to represent if the module was compiled with -enable-ossa-modules flag. When compiling a client module with -enable-ossa-modules flag, all dependent modules are checked for this bit, if not on, recompilation is triggered with -enable-ossa-modules. * Updated tests
13 lines
405 B
Swift
13 lines
405 B
Swift
|
|
import Swift // expected-remark {{rebuilding module 'Swift'}}
|
|
// expected-note @-1 {{compiled module is out of date}}
|
|
// expected-note @-2 {{unable to load compiled module}}
|
|
// expected-note @-3 {{prebuilt module is out of date}}
|
|
// expected-note @-4 {{unable to load compiled module}}
|
|
|
|
func main() {
|
|
let f = foo() // expected-warning {{initialization of immutable value 'f' was never used}}
|
|
}
|
|
|
|
main()
|