mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This just eliminates -enable-sil-ownership from all target-swift-frontend and target-swift-emit-silgen RUN lines. Both of those now include enable-sil-ownership in their expansion.
11 lines
454 B
Swift
11 lines
454 B
Swift
// RUN: %target-swift-frontend -sil-verify-all -emit-sil %s -o /dev/null -verify
|
|
|
|
@_transparent func waldo(_ x: Double) -> Double {
|
|
return fred(x); // expected-error {{inlining 'transparent' functions forms circular loop}} expected-note 1 {{while inlining here}}
|
|
}
|
|
|
|
@_transparent func fred(_ x: Double) -> Double {
|
|
return waldo(x); // expected-error {{inlining 'transparent' functions forms circular loop}} expected-note 1 {{while inlining here}}
|
|
}
|
|
|