Files
Kavon Farvardin d2bd562799 Test: send shadow RUN lines to /dev/null
The opaque values test coverage I initially added will emit to
stdout, which is noisy for people's logs if the test is failing for
some other reason.
2026-06-30 17:40:48 -07:00

26 lines
796 B
Swift

// RUN: %target-swift-emit-silgen-ossa -o /dev/null -enable-sil-opaque-values %s
// RUN: %target-swift-emit-silgen -Xllvm -sil-print-types %s | %FileCheck %s
func subclassFloatLiteral() -> Bar {
let x: Bar = 1.0
return x
}
// CHECK-LABEL: sil hidden [ossa] @$s13required_init20subclassFloatLiteralAA3BarCyF
// CHECK: class_method {{%.*}} : $@thick Foo.Type, #Foo.init!allocator
class Foo: ExpressibleByFloatLiteral {
required init(floatLiteral: Float) { }
func identify() {}
}
class Bar: Foo {
override func identify() {}
}
// CHECK-LABEL: sil_vtable Foo {
// CHECK: #Foo.init!allocator: {{.*}} : @$s13required_init3FooC{{[_0-9a-zA-Z]*}}fC
// CHECK-LABEL: sil_vtable Bar {
// CHECK: #Foo.init!allocator: {{.*}} : @$s13required_init3BarC{{[_0-9a-zA-Z]*}}fC