Files
swift-mirror/test/embedded/mirror.swift
Henrik G. Olsson cbc0ec3b88 Add -verify-ignore-unrelated where necessary (NFC)
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.
2025-10-04 14:19:52 -07:00

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
}