Files
swift-mirror/test/SILOptimizer/Inputs/bug-reducer-tester-miscompile-driver.swift
Michael Gottesman 0403feba82 [bug-reducer-tester] Add support for causing a miscompile instead of just asserting.
Previously, bug reducer tester would just assert when it saw a direct apply to
its target function. Now we add support for also causing a miscompile by just
deleting the apply. This is tested by eliminating an apply to putchar to ensure
we are not dependent on any stdlib details.
2017-01-04 15:21:30 -08:00

10 lines
271 B
Swift

// We use this driver file to ensure that we are not dependent on how main/start
// are setup on our platform. The c function interface that we use is very
// standard, so we should be ok to rely on it.
@_silgen_name("function_2")
func function_2() -> ()
function_2()