mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
21 lines
387 B
Swift
21 lines
387 B
Swift
// RUN: %target-swift-frontend -emit-sil %s | %FileCheck %s
|
|
|
|
// Check that we don't crash when trying to print an inactive if-clause.
|
|
|
|
// CHECK: struct TestStruct
|
|
// CHECK-NEXT: internal enum TheRealOne
|
|
// CHECK-NEXT: case B
|
|
|
|
struct TestStruct {
|
|
#if abc
|
|
internal enum Unused {
|
|
case A(AnyObject)
|
|
}
|
|
#else
|
|
internal enum TheRealOne {
|
|
case B(AnyObject)
|
|
}
|
|
#endif
|
|
}
|
|
|