mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
These are tests that fail in the next commit without this flag. This does not add -verify-ignore-unrelated to all tests with -verify, only the ones that would fail without it. This is NFC since this flag is currently a no-op.
14 lines
392 B
Swift
14 lines
392 B
Swift
// RUN: %target-swift-emit-ir -verify -verify-ignore-unrelated %s -enable-experimental-feature Embedded -wmo
|
|
|
|
// REQUIRES: swift_in_compiler
|
|
// REQUIRES: optimized_stdlib
|
|
// REQUIRES: swift_feature_Embedded
|
|
|
|
public struct MyStruct {
|
|
var a, b, c: Int
|
|
}
|
|
|
|
public func foo(s: MyStruct) {
|
|
let mirror = Mirror(reflecting: s) // expected-error {{'Mirror' is unavailable}}
|
|
_ = mirror.children
|
|
} |