blob: 00dc28f41aaee106b527308608f548f2c9ed25ca [file] [log] [blame]
// RUN: %target-swift-frontend -sdk "" -I %S/Inputs/macros-repeatedly-redefined -typecheck %s -verify
// This used to result in a use-after-free because the SmallVector holding the
// macros was reallocated.
import A
import B
import C
import D
import E
import F
_ = REDEFINED // no-warning
_ = x // expected-error {{use of unresolved identifier 'x'}}