Revision a87ef76f85c8c42fa15329ea53adda4793bf9686 authored by Mishal Shah on 27 August 2019, 23:26:43 UTC, committed by GitHub on 27 August 2019, 23:26:43 UTC
2 parent s 148ea44 + 4d66676
Raw File
if_clause_printing.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
}

back to top