Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2017-12-12-a
/
.
/
test
/
SILOptimizer
/
devirtualize_cast.swift
blob: 6bd19704dcdac4bb892de80bc6a6707afd33d37a [
file
] [
log
] [
blame
]
// RUN: %target-swift-frontend %s -O -emit-sil
// Make sure we are not crashing on this one.
class
X
{
func ping
()
{}
}
class
Y
:
X
{
override
func ping
()
{}
}
func foo
(
y
:
Y
)
{
var
x
:
X
=
y
x
.
ping
()
}