Files
swift-mirror/validation-test/SILOptimizer/gh68328.swift
2023-09-12 14:45:51 +01:00

20 lines
438 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-build-swift %s -o %t/bin
// RUN: %target-codesign %t/bin
// RUN: %target-run %t/bin 2> %t/out.txt || true
// RUN: %FileCheck %s < %t/out.txt
// REQUIRES: executable_test
struct Example: ~Copyable {
private var failureString: String { "Goodbye." }
deinit { fatalError("FATAL ERROR: \(failureString)") }
}
func doit() {
let e = Example()
// CHECK: FATAL ERROR: Goodbye.
}
doit()