Files
swift-mirror/test/embedded/classes-optional.swift
2025-07-01 11:43:43 +01:00

20 lines
458 B
Swift

// RUN: %empty-directory(%t)
// RUN: %target-swift-frontend %s -enable-experimental-feature Embedded -c -o %t/main.o
// RUN: %target-clang %target-clang-resource-dir-opt %t/main.o -o %t/a.out -dead_strip
// RUN: %target-run %t/a.out | %FileCheck %s
// REQUIRES: swift_in_compiler
// REQUIRES: executable_test
// REQUIRES: optimized_stdlib
// REQUIRES: swift_feature_Embedded
class Foo {
var foo: Foo?
}
do {
_ = Foo()
print("OK!")
}
// CHECK: OK!