mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Right now the stdlib/overlays can compile against -Onone tests with or without -enable-ownership-stripping-after-serialization. This will help me to prevent other work going on from breaking these properties.
12 lines
583 B
Swift
12 lines
583 B
Swift
// RUN: %target-swift-frontend -sil-verify-all -emit-sil %s -o /dev/null -verify
|
|
// RUN: %target-swift-frontend -sil-verify-all -emit-sil %s -o /dev/null -verify -enable-ownership-stripping-after-serialization
|
|
|
|
@_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}}
|
|
}
|
|
|