mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
10 lines
271 B
Swift
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()
|